Current Publication

Creating Binary Controls

LabWindows/CVI

Create»Binary

A binary control operates like a mechanical on/off switch. A binary control gives a parameter value one of two predefined values, depending on whether the control is in the on or off position. To add a binary control to your function panel, select Create»Binary in the Function Panel Editor.

The following items appear in the Create Binary Control dialog box.

  • Control Label—The label that appears above the control on the panel.
  • Parameter Position—The location of the control value in the function parameter list. For a control in a common control function panel, Parameter Position specifies the control value in the parameter lists of all function panels in a Function Panel window. The first position is 1.

    For a control on a function panel, Parameter Position specifies the control value in the parameter list after the controls in the common control function panel. The first position after the controls in the common control function panel is 1. If there is no common control function panel, the first position is one 1.
  • Data Type—The data type of the values in the binary control.
  • Default Value—The default for the binary control. The default can be On or Off.
  • When you select the On/Off Settings button, the Edit On/Off Settings dialog box appears.
    • ON text—The label that appears next to the upper (on) position of the binary control.
    • OFF text—The label that appears next to the lower (off) position of the binary control.
    • ON value—The value, constant name, or valid C expression you want to associate with the On label.
    • OFF value—The value, constant name, or valid C expression you want to associate with the Off label.
Note Note  Use this binary control when you create function panels. If you are creating a GUI, refer to the Graphical User Interface topic for information about user interface controls.