LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Add device to Measurement and Automation

I ultimately want to Programmatically find a device in Max and return its Alias.  I figured how to do that but I discovered this will not work if it is not first listed in Max already.  Can someone please advise how I could Programmatically Add devices to Max.  I know the device is on the network, I know its IP address, Host Name and even the Product ID.  Currently In Max I must right click "Network Devices" and then choose the device form the list or enter the host name or the IP address in the field underneath "Add Device Manually".  Is it possible to make LabView code in which I simply enter the IP address and it is automatically entered into Max, of course providing that the IP address is a valid NI device and on the network?

0 Kudos
Message 1 of 3
(3,650 Views)

Greetings Fro2.

 

I'm not sure if this will work for your application but there is a VI called "DAQmx Add Network Device".  It can be found in the functions palette from Measurement I/O -> DAQmx -> DAQmx Advanced -> System Setup.  Hope this helps. 

 

Regards,

 

Michael G

Michael G.
Applications Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Self-realization: I was thinking of the immortal words of Socrates, who said, "... I drank what?"
0 Kudos
Message 2 of 3
(3,630 Views)

Follow Michael G's instructions to add a real device to NI MAX. To add a simulated device, the instructions are different: 

https://forums.ni.com/t5/LabVIEW/Create-MAX-Simulated-Device-from-Labview/m-p/3101021/highlight/fals...

0 Kudos
Message 3 of 3
(2,155 Views)