07-15-2019 09:01 AM
Hi Guys,
I've checked multiple threads here but still without an explicit answer to this question: is it possible to control my DAQ card USB6008 from a remote computer with Python?
The thing is, I 've got many instruments connected to the same computer. I use python to synthesis and control them. Most of them are oscilloscope and other big instruments which are controlled using the library Pyvisa. With pyvisa, I can turn on the NI-visa and control them using TCP-IP protocols, via IP addresses.
However this seems not possible for a DAQ card, or specifically, USB6008. Instead of pyvisa, it is controlled using library nidaqmx, in which I don't find a TCP-IP option. What I read from nidaqmx document (nidaqmx) is that the address is always 'Dev0' or so, something indicating a USB or other locally connected device.
So question: is it possible to connect USB6008 DAQ with IP address, from a remote computer?
Thank you.
07-16-2019 03:12 PM
Hi SeanSeanSean,
I don't believe this functionality can be accomplished using only the NI-DAQmx Python driver.
It seems it would be simpler if could have something that contacts the remote machine to run Python code located on the remote machine itself.
The 'Dev0' refers to the device name that you configured in NI MAX.
07-17-2019 09:25 AM
That is a good option if all the devices are connected to the same computer. But I have two local some devices connected to another computer. Therefore I still need one computer to collect and integrate the readings...
If nidaqmx does not support this feature, is there any other way that I can do this. For example, Socket forwarding?
Thanks.
Sean