LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to programmatically find cDAQ piror to adding the device to MAX

Hi all,

 

Im trying to programmatically find and add a cDAQ chassis to MAX.  I can add the cDAQ to MAX if i hardcode a static IP address.  Im not entirely sure that the address wont ever change though and id like to be able to find the device by its product name.  I can find the device information if i have the device listed in max, but if i delete it then i cant seem to locate it, i would like this functionality for using this application on different computers.

 

Thank you for any help,

 

Matt



-Matt
0 Kudos
Message 1 of 11
(3,713 Views)

Hey Matt,

 

It sounds like you could use the "Find Systems" vi in the System Configuration palette to get all the devices on the network, then find the cDAQ from there.

 

Does that sound like what you're trying to do?

Ty Prather
Technical Marketing Specialist
National Instruments
0 Kudos
Message 2 of 11
(3,672 Views)

Hi Ty,

 

I attempted to make that work, but it wont find any devices unless you search specefically for the ip address or you already have the device in your system.  I just gave it a static ip and that will have to do for now. HA

 

Thanks for the suggestion though,

 

Matt



-Matt
0 Kudos
Message 3 of 11
(3,667 Views)

That's interesting... I just left everything unwired and wired up the Detected Systems indicator and it found all devices on my subnet.

 

Does it show you all devices if you don't wire in any inputs?

Ty Prather
Technical Marketing Specialist
National Instruments
0 Kudos
Message 4 of 11
(3,661 Views)

Im using labview 2011 can you send me a sample of your code?  But i did leave it unwired and was unable to find my cDAQ, interesting enough it found some other devices that arent NI but not what i was looking for.



-Matt
0 Kudos
Message 5 of 11
(3,644 Views)

This is what I used in LabVIEW 2011 and it seemed to show me all the network devices on my subnet.

 

2015-07-14_091142.png

Ty Prather
Technical Marketing Specialist
National Instruments
0 Kudos
Message 6 of 11
(3,574 Views)

Hi Ty,

 

I ran that, even with my cDAQ registered in MAX and it still wont find it.  Its an ethernet network DAQ.  I can find it using a DAQmx system or device property node, but only when it is registered in MAX.  Im not sure there is an easy way to go about finding it.

 

Matt



-Matt
0 Kudos
Message 7 of 11
(3,557 Views)

Matt,

 

What model of cDAQ is it and do you know what OS it has installed?

Ty Prather
Technical Marketing Specialist
National Instruments
0 Kudos
Message 8 of 11
(3,550 Views)

Ty,


Photo should have the information youre looking for.  By OS do you mean OS of my computer or firmware version of the device? Im running windows 7 and the device firmware version is in photo.

 

Matt



-Matt
0 Kudos
Message 9 of 11
(3,544 Views)

Hey Matt, 

 

My mistake in assuming that it was a Real-Time cDAQ chassis. The SysConfig VI won't show that device since it doesn't have an OS running on the chassis.

 

In this case, I can't think of any way to determine the IP of the cDAQ chassis programmatically.

Ty Prather
Technical Marketing Specialist
National Instruments
0 Kudos
Message 10 of 11
(3,515 Views)