10-06-2010 04:14 AM
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
10-06-2010 08:36 AM - edited 10-06-2010 08:36 AM
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.
10-06-2010 11:06 AM
Thanks a lot!
I will add the DSC and come back with new questions..
10-06-2010 11:09 AM
DataSocket reads and write can often be used in situations where th URL can change on the fly.
I hope that helps,
Ben
10-06-2010 11:21 AM
Of course that also goes for NSV's using the SV API where you could programmatically construct the URL.
10-06-2010 11:59 AM
@sachsm wrote:
Of course that also goes for NSV's using the SV API where you could programmatically construct the URL.
Agreed!
![]()
Ben
10-07-2010 03:41 AM
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 🙂
10-07-2010 07:43 AM
I guess you forgot to pay NI $1000.00 for this basic capability.
10-07-2010 08:41 AM
True...![]()