Select the Scaling option in the listbox of the Shared Variable Properties dialog box to display this page. Use this page to configure scaling for shared variables.
Note You can use scaling only for network-published shared variables, I/O variables, and I/O aliases. 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 Enable Aliasing checkbox on the Variable page of the Shared Variable Properties dialog box.
This page can include the following components:
Enable Scaling—Enables LabVIEW to scale the shared variable value.
Scale Type—Sets the type of scaling to use when communicating with the data source. Different types of scaling are available depending on the data type of the shared variable.
Linear—Performs linear scaling between the Raw Scale and the Engineering Scale for shared variables with a supported data type.
Square Root—Performs a square root operation when converting from the Raw Scale range to the Engineering Scale range for shared variables with a supported data type. The following equation defines the square root operation: b + m * sqrt(raw – o) where b = Engineering Zero Scale, m = (Engineering Full Scale – Engineering Zero Scale)/sqrt(Raw Full Scale – Raw Zero Scale), and o = Raw Zero Scale.
Engineering Unit—Specifies the engineering unit for the shared variable.
Raw Full Scale—Specifies the maximum value of the scale you want to use to collect the data from the data source. The raw scale is the original scale that you used to collect the data. The Raw Full Scale value must be greater than the Raw Zero Scale value. This option appears for shared variables with a supported data type.
Engineering Full Scale—Specifies the maximum value the Shared Variable Engine and HMI application use to scale the data source. The engineering scale is the full range that you want the Shared Variable Engine to use to scale the data source. This option appears for shared variables with a supported data type.
Raw Zero Scale—Specifies the minimum value of the scale you want to use to collect the data from the data source. The raw scale is the original scale that you used to collect the data. The Raw Zero Scale value must be less than the Raw Full Scale value. This option appears for shared variables with a supported data type.
Engineering Zero Scale—Specifies the minimum value the Shared Variable Engine and HMI application use to scale the data source. The engineering scale is the full range that you want the Shared Variable Engine to use to scale the data source. This option appears for shared variables with a supported data type.
Coerce to Range—Coerces the data to the specified range so it is valid. If you scale the data for a shared variable you can write, the data must be within the Raw Scale range. If you scale the data for a shared variable you can read, the data must be within the Engineering Scale range. This option appears for shared variables with a supported data type.
Invert—Inverts data sent by the data source before storing it in the shared variable. This option appears for shared variables with a Data Type of Boolean.