The shared variable deadband settings that you can control directly are the update deadband, logging deadband, and alarm deadband.
 |
Note You can set deadbands only for network-published shared variables with a Data Type of Double. |
Complete the following steps to set shared variable deadband values.
- 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.
- Set the update deadband.
- Select Update Deadband to display the Update Deadband page.
- Place a checkmark in the Enable Update Deadband checkbox.
- Enter values in the User deadband (% of range) and Source deadband (% of range) numeric controls. You must bind this shared variable to a data source to use the source deadband.
- (Optional) Set the logging deadband.
- Select Logging to display the Logging page.
- Place a checkmark in the Enable Logging checkbox.
- Verify that a checkmark is in the Log Data checkbox.
- Enter a value for the deadband in the Value Deadband numeric control.
- (Optional) Set the alarm deadband.
- Select Alarming to display the Alarming page.
- Place a checkmark in the Enable Alarming checkbox.
- Place checkmarks in the appropriate cells of the Enabled column to enable the alarms.
- Enter values in the appropriate cell of the Deadband/Time column for the alarms.
- Click the OK button to close the Configure Double Alarms dialog box.
- Click the OK button.
You also can use the SharedVariableIO properties to set alarm, logging, and update deadbands programmatically.