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 U32 Bit Field can have invert-mask and/or select-mask scaling. Complete the following steps to scale bit array 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 from the list of this dialog box to display the Scaling page.
  3. Place a checkmark in the Enable Scaling checkbox.
  4. In the Scaling Invert Mask text box, set the bits you need to scale. LabVIEW masks the bits you do not set and reports these masked bits in an array as zeros.
  5. In the Scaling Select Mask text box, set which bits are inverted between the device server and the Shared Variable Engine. You can invert only the bits specified in this text box.
  6. Click the OK button to close the Shared Variable Properties dialog box.

Use the SharedVariableIO properties to scale U32 Bit Array shared variables programmatically.