![Rigol DS4000E Series Скачать руководство пользователя страница 274](http://html1.mh-extra.com/html/rigol/ds4000e-series/ds4000e-series_programming-manual_1460996274.webp)
RIGOL
Chapter 3 Programming Examples
3-14
DS4000E Programming Guide
Dim s32Disp As Integer
' Obtain the USB resource of VISA
Call viOpenDefaultRM(defrm)
Call viFindRsrc(defrm, "USB?*", list, nmatches, matches)
' Turn on the instrument
Call viOpen(defrm, matches, 0, 0, vi)
' Send a command to query the status of CH1
Call viVPrintf(vi, ":CHAN1:DISP?" + Chr$(10), 0)
' Acquire the status of CH1
Call viVScanf(vi, "%t", strRes)
s32Disp = CInt(strRes)
If (s32Disp = 1) Then
' Send the setting command
Call viVPrintf(vi, ":CHAN1:DISP 0" + Chr$(10), 0)
Label1(0).ForeColor = &H808080 'Gray
Else
Call viVPrintf(vi, ":CHAN1:DISP 1" + Chr$(10), 0)
Label1(0).ForeColor = &HFFFF& 'Yellow
End If
' Close the resource
Call viClose(vi)
Call viClose(defrm)
6.
Save and run the project to obtain a single exe. program for demo. When the oscilloscope is correctly
connected to the PC, the ON/OFF control of any channel can be realized.
Содержание DS4000E Series
Страница 1: ...RIGOL Programming Guide DS4000E Series Digital Oscilloscope Aug 2016 RIGOL TECHNOLOGIES INC...
Страница 2: ......
Страница 266: ...RIGOL Chapter 3 Programming Examples 3 6 DS4000E Programming Guide...
Страница 270: ...RIGOL Chapter 3 Programming Examples 3 10 DS4000E Programming Guide...