Admin Production ni-theme
Current Publication

Creating a Function Window

LabWindows/CVI

Creating a Function Panel Window

In this example, you create a function panel without writing any code. The example panel controls an oscilloscope with two channels and configures the vertical sensitivity, coupling, and invert setting of the oscilloscope.

Complete the following steps to create a new instrument and panel.

  1. Select File»New»Function Tree (*.fp).
  2. Select Create»Instrument.
  3. Enter Function Panel Examples as the Name and panel as the Prefix. Click OK.
  4. Select Create»Function Panel Window.
  5. Enter Configure as the Name and config as the Function Name. Click OK.
  6. Double-click the Configure node in the function tree. A new function panel window that contains a single function panel appears on the screen. Notice that the code name of the function appears in the generated code window, preceded by the prefix.
  7. Select Create»Binary and complete the Create Binary Control dialog box, except Default Value, as shown in the following figure.

  8. Click the On/Off Settings button and complete the Edit On/Off Settings dialog box as shown in the following figure. Click OK in both dialog boxes and position the control on the panel.

  9. In the Create Binary Control dialog box, set the Default Value to 1.
  10. Select Create»Input.
  11. Complete the Create Input Control dialog box as shown in the following figure. Click OK and position the control on the panel.

  12. Select Create»Slide.
  13. Complete the Create Slide Control dialog box as shown in the following figure.

  14. Click Label/Value Pairs and complete the Edit Label/Value Pairs dialog box as shown in the following figure. Click OK in both dialog boxes and position the control on the panel.

  15. Select Create»Binary and complete the Create Binary Control dialog box, except Default Value as shown in the following figure.

  16. Click the On/Off Settings button and complete the Edit On/Off Settings dialog box as shown in the following figure. Click OK in both dialog boxes and position the control on the panel.

  17. In the Create Binary Control dialog box, set the Default Value to Off.