Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Shared Variables VIs

LabVIEW 2011 Datalogging and Supervisory Control Module Help

Edition Date: June 2011

Part Number: 371618G-01

»View Product Info

Owning Palette: DSC Module VIs and Functions

Requires: DSC Module. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Shared Variables VIs to interact with a shared variable, convert a string to a shared variable and back, and create an invalid shared variable name.

The Shared Variables palette also contains the Shared Variable node, which represents a shared variable on the block diagram, and the DataSocket functions, which you can use to read and write to shared variables.

The VIs on this palette can return general LabVIEW error codes or specific DSC Module error codes.

Palette ObjectDescription
Cancel Value Change NotificationsStops value change events for the specified shared variables and closes the associated PSP connections.
Disable Value Change NotificationsReleases an event reference created by the Enable Value Change Notifications VI and cleans up all resources associated with the event. Any Event Structures registered for this event stop receiving value change notifications.
Enable Value Change NotificationsReturns a reference to a user event that you can use to monitor changes in the values of shared variables.
Not a Shared VariableCreates a shared variable name that is guaranteed to not be a valid shared variable name.
Request Value Change NotificationsSubscribes to the specified shared variables and begins generating notifications. Call this VI multiple times to add to the list of shared variables being monitored for value changes.
Shared Variable ConstantA constant input for a shared variable and/or a VI.
Shared Variable Error from QualityConverts status and quality codes to an error I/O cluster.
Shared Variable to StringConverts a shared variable to a string.
String to Shared VariableConverts a string to a shared variable. valid shared variable? is TRUE if the resulting shared variable is deployed. valid shared variable? is FALSE when the resulting shared variable does not exist or is created in the buffer.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit