LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic binding of shared variables to front panel controls

I am using numeric indicators for monitoring actual values of devices. These actual values are provided by shared variables visible in DSM. I can bind these shared variables to the control via

 

Right Click on control >> Properties >> Data Binding

>> Data Binding Selection = Shared Variable Engine (NI-PSP)

>> Access Type = Read

>> Path = SV Path

 

This works fine. However, I would like to populate the data binding dynamically from a database (I don't want to change the program code if the hardware / shared variable environment changes). I tried to realize this functionality by the following code (the BindingPath is provided in parts by the database):

 

image.png

When executing this code I get an error message:

Bildschirmfoto 2021-09-22 um 11.27.23.png

QUestion: How do I dynamically bind a front panel control to a shared variable?

0 Kudos
Message 1 of 2
(1,106 Views)

Hello  wgeithner,

 

I'm sending you a link that can be helpful.

Using the LabVIEW Shared Variable - NI

Refer to the Front Panel Data Binding section, where you might find useful information.

 

Best Regards.

0 Kudos
Message 2 of 2
(1,026 Views)