I am trying to send command to a serial port (COM70) to control an external device. I am doing this trought the python component in grasshopper, using the pySerial module (http://pyserial.sourceforge.net/) which I can load and that supports IronPython and Mono. However, when I am trying to open a serial port (serialInstance.open()) I get a unauthorizedAccessException. This seems to be a .NET problem and I am at a loss at how to begin solving this. Any help is greatly appreciated. The COM port is a virtual com port from a software called Com0Com.
PS. if someone knows another way of easily sending strings to a com port from python (not Firefly or another GH component) then I would be delighted to hear about it.
Tags for this Thread