LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programmatically change the data binding source for shared variables?

Hello,

 

I'm a relatively new labview user and i would really like to know how i could programmatically change the data binding source for shared Variables. I'm using Labview 10 and windows xp.

I have already read this site "http://digital.ni.com/public.nsf/websearch/2E8BAD0EA218A7558625712E0003F044?OpenDocument" but it didn't help because i don't have the dsc module at the functions palette and when i click on the default property of the property node I get "no properties". What i would really like to manage is to easily change the data binding source more automatically through the code without having to bind  every single variable from the front panel, every time the source computer changes. I tried to use Invoke Node -> Data Binding but there is an error which says that this information can change only at edit time (?).

 

I would really appreciate any help 🙂

 

Thank you very much

0 Kudos
Message 1 of 9
(4,529 Views)

If you bind to the project variables then you can change the .alias file that should be adjacent to your exe which maps the library process name to an IP address.

This way you simply change the .alias file for each unique deployment of your HMI.  If you need to switch one HMI to multiple sources on-the-fly then I guess you will need the DSC.

0 Kudos
Message 2 of 9
(4,516 Views)

Thanks a lot!

I will add the DSC and come back with new questions..

0 Kudos
Message 3 of 9
(4,502 Views)

DataSocket reads and write can often be used in situations where th URL can change on the fly.

 

I hope that helps,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 9
(4,499 Views)

Of course that also goes for NSV's using the SV API where you could programmatically construct the URL.

0 Kudos
Message 5 of 9
(4,492 Views)

@sachsm wrote:

Of course that also goes for NSV's using the SV API where you could programmatically construct the URL.


Agreed!

 

Smiley Happy

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 9
(4,482 Views)

Hello again,

 

I downloaded the DSC module from this site http://joule.ni.com/nidu/cds/view/p/id/1112/lang/en and after the installation there was a pop-up window saying that there is no lisence to activate. The DSC functions are still not on the functions palette. What went wrong?

 

Thanks 🙂

0 Kudos
Message 7 of 9
(4,466 Views)

I guess you forgot to pay NI $1000.00 for this basic capability.

0 Kudos
Message 8 of 9
(4,455 Views)

True...Smiley Tongue

0 Kudos
Message 9 of 9
(4,450 Views)