Bind a PC VI front-panel indicator to a network-published shared variable (NPSV)
A quick and easy way for a PC HMI (human-machine interface) VI to observe the state of an RT-hosted network-published shared variable (NPSV) without creating any block diagram code; an alternative to programmatically accessing the NPSV value.
Create a front-panel indicator of the same type as the NPSV you wish to read
Right-click on the indicator and choose “Properties”
Select the “Data Binding” tab
Select “Shared Variable Engine (NI-PSP)”
Select “Read only” as the access type
Browse to “Project Items,” “NI myRIO 1900”, and “RT Shared Variables.lvlib”
Choose the desired shared variable to bind to the indicator
The indicator is now tagged by a triangle symbol that glows green when the PC VI runs and the shared variable is accessible.
NOTE: The indicator changes only when the associated NPSV changes state. For this reason, the indicator need not reside in a polling loop but instead may be placed in its own area of the block diagram.