Download Datalogging and Supervisory Control Module Developer Manual
Transcript
Chapter 4 Displaying and Controlling Data Graphics, both as decorations and as controls and indicators, can make front panels easier to operate and more informative. Creating Front Panel Controls and Indicators Build the front panel of a VI with a combination of controls and indicators representing the values of the tags. The HMI Wizard connects controls and indicators to tags. Connecting Controls and Indicators to Tags Complete the following steps to connect a control or indicator to a tag. 1. Right-click the front panel control or indicator and select HMI Wizard from the shortcut menu. 2. Select the tag you want to connect to the control or indicator in the Tag pull-down menu. Or click the Create New Tag button, shown at left, to create a new tag. 3. For controls on the Boolean, Numeric, and String controls palettes, select among the following options on the Data Connection tab: • Match control label to tag name—Matches the label on the control or indicator to the tag name. • Match scale to tag configuration (Numeric Controls only)—Adjusts the object scale to match the maximum and minimum of the tag you select. 4. Click the Alarms tab. 5. Select among the following options on the Alarms tab: 6. • Change colors with alarm state—Changes the color of the control or indicator when the tag is in an alarm state. • Blink when—Makes the control or indicator blink when the tag is in an alarm state or when the alarm is unacknowledged. Click the OK button to generate block diagram code for the tags and options you create. Refer to the Generating Code with the HMI Wizard section for more information about working with the HMI Wizard and the block diagram elements it generates. DSC Module Developer Manual 4-2 ni.com