LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Data Socket Binding

 Currently, I'm testing my program on Device A.  When I'm running the program on Device A, The Set point, Travel, Drive Signal and  Actuator Pressure will be bind to Device A.
 
But I have quite a number of different companys' devices to be connect to the program. I want the program to be able to auto bind to the selected device which i want to run in the program, so that i don't need to re-bind everything all over again when running another device. How should i modify the program?
I have attached my program.
 
Thanks a million!!!
 
Cheers
MC.2
0 Kudos
Message 1 of 3
(2,612 Views)
MC.2,

1.Have you looked into using shared variables instead of Datasocket? 
2.Do you know what the URLs of the other devices information will be?
3.I do not find any references to autobinding, and it seems that it might be difficult to implement without knowing the URLs when you are writing the application.
4.What is your definition of a device?
5.How many different devices will you be testing?

Good Luck,

NathanT

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

Pick the control on the block diagram and right click.  Pick Create/Invoke Node/DataSocket/URL.  That will give you a property you can change to write.  You can then use string functions to build your path to the device and enter it into that property node during an initialization step of the program.

As NathanT suggests, I believe NI now considers shared variables the preferred method.

 

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