Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Choose Hostname for simulated cDAQ acquisition

Solved!
Go to solution

I made a copule of VI to send data (reading a cDAQ simulated modules) and receive to graph that data. The shared library has 48 variables. It works well. but i must to configure each variable in receiver VI library to read its respective variable from sender VI. This causes i must modify the library in receiver VI each time sender VI runs in a different PC on network (changing hostname).. Is there any way to avoid this, i mean choose hostname at VI or something? Finally, the main VI (sender) will keep in the same PC all time; however i must make proobes in PCs that hasn´t LV installed.

 

I hope your advices...

0 Kudos
Message 1 of 4
(3,878 Views)
Solution
Accepted by topic author andcp360

Hi there,

 

Consider a programmatic approach…try looking for the server and its variables by name as shown in picture attach. That way it does not matter where you are…the code will be pointing at the same location all the time.

 

I hope this helps

 

Regards,

Alejandro C. | National Instruments
0 Kudos
Message 2 of 4
(3,855 Views)

Hi andcp360:

 

Could you send me your Project with all the VIs and Libraries to better understand how are you communicating the variables and post a suggestion on how can you dynamically set the hostname.

 

Juan Arguello Director Support Services @NI
0 Kudos
Message 3 of 4
(3,847 Views)

Hi guys,

 

Thanks for the help, i used the shared variable example attached to solve my problem!

 

Regards. 

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