06-25-2018 02:58 PM - edited 06-25-2018 03:00 PM
The PyVISA library supports TCP/IP connections see:
TCPIP INSTR | TCPIP[board]::host address[::LAN device name][::INSTR] |
TCPIP SOCKET | TCPIP[board]::host address:: port:: SOCKET |
If I am able to establish a TCP/IP connection between Python and the cRIO would I be able to use PyVISA on my network device? My network device is a VISA TCP/IP resource on the cRIO (I think). It shows up under network devices in NI-Max and it has a 5 different labels
Has anyone ever tried to use this library like this or knows if its even possible?
06-27-2018 10:16 AM
There is this whitepaper that shows different uses of Python and LabVIEW that I have found helpful, but it doesn't say anything about if the PyVISA library can be used with a cRIO or not
06-28-2018 09:05 AM
Smurf,
What do you mean by "establish a TCP/IP connection between Python and the cRIO"? What hardware are you trying to communicate with? The cRIO is itself a network device, are you saying you have a separate network device and it has the same IP address as the cRIO?
Regards,
TyVo
06-28-2018 09:11 AM
I have an Ethernet camera attached to my cRIO that takes visa commands, it shows up in NI-Max as a network device on my remote system (cRIO)
06-29-2018 09:46 AM
I personally am not familiar with the PyVISA library. You should be able to use the LabVIEW VISA API to control the camera from the cRIO.