5. Run the program and the interface as shown in the figure below is displayed. Click
the Address drop-down button and select the VISA resource name; click Connect
to connect the instrument; enter the command into the Command input field and
click Write to write the command into the instrument. If the command is a query
command, click Read and the returned value is displayed in the Return field.
5.3
Visual Basic Programming Example
Program used in this example: Visual Basic 6.0
Function realized in this example: turn on the power supply’s three channels with
their color displayed.
Enter the Visual Basic 6.0 programming environment, and perform the following
procedures.
1. Build a standard application program project (Standard EXE), and name it "Demo".
2. Click Project > Add Module to open the Add Module dialog box. In the dialog
box, click the Existing tab to search for the visa32.bas file in the include folder
under the NI-VISA installation path and add the file.
Programming Examples
126
Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
Содержание DP900 Series
Страница 1: ......
Страница 133: ...d Exit Programming Examples Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved 125 ...
Страница 141: ......