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

Scaling Boolean Shared Variables (DSC Module)

You can scale the value of a shared variable with a Data Type of Boolean.

Note  You scale only network-published shared variables. The shared variable you want to scale also must have a data source. Configure a shared variable to have a data source by placing a checkmark in the Bind to Source checkbox on the Variable page of the Shared Variable Properties dialog box.

Shared variables with a Data Type of Boolean can have invert 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 the 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 to invert the Boolean value when the Shared Variable Engine 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.


Resources


 

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