LabVIEW Datalogging and Supervisory Control Module

Table of Contents

Scaling Boolean Shared Variables (DSC Module)

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

You can scale the value of a shared variable with a data type of Boolean.

Note  You can use scaling only for network-published shared variables, I/O variables, or I/O aliases. When the shared variable you want to scale is a network-published shared variable, it must have a data source. Configure a network-published shared variable to have a data source by placing a checkmark in the Enable Aliasing checkbox on the Variable page of the Shared Variable Properties dialog box.

Shared variables with a data type of Boolean can have inverted scaling. Complete the following steps to scale Boolean shared variables.

  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 Scaling to display the Scaling page.
  3. Place a checkmark in the Enable Scaling checkbox.
  4. Place a checkmark in the Invert checkbox for the Shared Variable Engine (SVE) to invert the Boolean value when the SVE communicates with the device server.
  5. Click the OK button to close the Shared Variable Properties dialog box.

Use the SharedVariableIO properties to scale Boolean shared variables programmatically.

Log in to get a better experience