Current Publication

Creating Slide Controls

LabWindows/CVI

Create»Slide

A slide control looks like a mechanical slide switch. A slide control specifies a parameter value depending upon the position of the cross-bar of the slide control. To add a slide control to your function panel, select Create»Slide in the Function Panel Editor.

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

  • Control Label—The label that appears above the control on the function 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 panel function is 1. If there is no common control function panel, the first position is 1.
  • Data Type—The data type of the values in the slide control.
  • Default Value—The default for the slide control. The default must be one of the labels specified in the Edit Label/Value Pairs dialog box.
  • Label/Value Pairs—When you select this button, the Edit Label/Value Pairs dialog box appears.

    Use the Edit Label/Value Pairs dialog box to specify the label and value associated with each cross-bar position on the slide control. A slide control can have up to 32 labels and associated values.
Note Note  Use this slide 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.