LabVIEW Datalogging and Supervisory Control Module

Table of Contents

Initializing Shared Variable Values (DSC Module)

  • Updated2023-02-21
  • 1 minute(s) read

You can set the initial value for network-published shared variables only. Enable network publishing for a shared variable before you set an initial value for this shared variable.

Complete the following steps to initialize a shared variable to a known value when the Shared Variable Engine starts.

  1. Right-click a target or a LabVIEW project library in the Project Explorer window and select New»Variable from the shortcut menu to display the Shared Variable Properties dialog box. You also can right-click an existing shared variable in the Project Explorer window and select Properties from the shortcut menu to display this dialog box.
  2. Select Initial Value to display the Initial Value page.
  3. Place a checkmark in the Enable Initial Value checkbox.
  4. Enter the initial value you want the shared variable to have in the Initial Value control. The information you enter in this control depends on the data type of the shared variable.
    • Boolean—Click the TRUE or FALSE buttons in the Initial Value section to set the initial value.
    • Double—Enter a numeric value in the Initial Value text box.
    • Integer—Enter a numeric value in the Initial Value text box.
    • Single—Enter a numeric value in the Initial Value text box.
    • String—Enter a text value in the Initial Value text box.
    • U32 Bit Field—Enter a numeric value in the Initial Value text box.
  5. Click the OK button.

Log in to get a better experience