06-08-2017 01:56 PM
I was able to connect to a virtual cDAQ that I created with some .NET code and was able to stream data to the screen. For the next step, I am trying to connect to a true cDAQ on my LAN. I used the following code:
DaqSystem.Local.AddNetworkDevice("100.100.11.29", "cDAQ9139", 100);
And it comes back with an exception with the following reason:
An unhandled exception of type 'NationalInstruments.DAQmx.DaqException' occurred in NationalInstruments.DAQmx.dll
Additional information: Retrieving properties from the network device failed. Make sure the device is connected.
I can find the cDAQ using MAX at that address, and it says that it is running. Could this be a firewall issue, or am I just missing something?
Thanks - Wil
06-09-2017 10:17 AM
Since the issue started to appear when using a network cDAQ, it certainly could be due to a firewall issue. Are you able to disable your firewall to test this?
06-09-2017 11:40 AM
I disabled the firewall on the cDAQ and the computer trying to connect to it, but it is on our company's network, so I'm not sure if they are blocking other ports with network traffic.
I was able to copy the code over to the cDAQ and run it by using the cDAQ locally, so that is at least a work-around for me now. But I would like to get this working via a network, as that is how I typically connect to it.
Thanks for the reply - Wil
06-12-2017 03:06 PM
Here is a thorough article we have on troubleshooting network cDAQ's:
Network cDAQ Troubleshooting Resources
http://digital.ni.com/public.nsf/allkb/E67B4E4749F378FF862577270059BD4B
Please run through these options, especially checking to see if the needed ports are open, and see if any of them resolve the issue you are seeing.