Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Finding a cDAQ with DaqSystem.Local.AddNetworkDevice

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

0 Kudos
Message 1 of 4
(3,302 Views)

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?

0 Kudos
Message 2 of 4
(3,265 Views)

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

0 Kudos
Message 3 of 4
(3,260 Views)

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.

Alex C.
Applications Engineering
National Instruments
Message 4 of 4
(3,250 Views)