LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically bind to a share varible

The user will select a share varible from thousands of share varible. The user will select the name of share varible.
Then bind the share varible to a certain varible for curve display.
 
Any ideas?
0 Kudos
Message 1 of 4
(3,105 Views)

You can programmatically bind shared variable to a data source using the shared variable IO property node. However, LabVIEW Datalogging and Supervisory Control (DSC) module is required to have access to this property node. Checkout this knowledgebase entry.

Tunde. 

0 Kudos
Message 2 of 4
(3,085 Views)
Sorry, what I mean is bind a share varible to a control, not not bind a data source to a share varible.
0 Kudos
Message 3 of 4
(3,075 Views)
You can build on the previous knowledge base entry by manually binding the control to a shared variable(1) using the control "binding" property option. The shared variable(1) will in turn be programmatically binded to any other shared variables or data source. So by changing the data source of shared variable(1), the control will be automatically binded to the new source or shared variable.
 
Alternatively, you can use the "Invoke Method:Data Binding: Bind to Network Path"  of a control to programmatically to set the url of the shared variable. To accesss this method, right click on the control on the block diagram and select  "create>>invoke node>>Data Binding>> Bind to Network Path".
 
Tunde
Message 4 of 4
(3,050 Views)