![Agilent Technologies 33120A Скачать руководство пользователя страница 255](http://html.mh-extra.com/html/agilent-technologies/33120a/33120a_user-manual_2867471255.webp)
QuickBASIC / GPIB (Program 2)
REM $INCLUDE: ’QBSETUP’
’
’ This program uses low-level SCPI commands to configure
’ the function generator to output an AM waveform.
’ This program also shows how to use "state storage" to
’ store the instrument configuration in memory. The program
’ is written in QuickBASIC and uses the 82335B GPIB card
’ and GPIB command library.
’
ISC& = 7 ’ GPIB select code is "7"
Dev& = 710 ’ Assign I/O path to address 710
Timeout = 5 ’ Configure device library for a 5 second timeout
CALL IOTIMEOUT(ISC&, Timeout)
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
CALL IORESET(ISC&) ’ Reset the 82335B GPIB card
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
CALL IOCLEAR(Dev&) ’ Send a device clear to the function generator
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
CALL IOREMOTE(Dev&) ’ Place the function generator in the remote mode
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
Info1$ = "*RST" ’ Reset the function generator
Length1% = LEN(Info1$)
CALL IOOUTPUTS(Dev&, Info1$, Length1%)
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
Info1$ = "OUTP:LOAD 50" ’ Output termination is 50 ohms
Length1% = LEN(Info1$)
CALL IOOUTPUTS(Dev&, Info1$, Length1%)
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
Info1$ = "FUNC:SHAP SIN" ’ Carrier waveshape is sine wave
Length1% = LEN(Info1$)
CALL IOOUTPUTS(Dev&, Info1$, Length1%)
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
Info1$ = "FREQ 5000;VOLT 5" ’ Carrier frequency is 5 kHz @ 5 Vpp
Length1% = LEN(Info1$)
CALL IOOUTPUTS(Dev&, Info1$, Length1%)
IF PCIB.ERR <> NOERR THEN ERROR PCIB.BASERR
6
Chapter 6 Application Programs
Using the Low-Level Commands
253
Содержание 33120A
Страница 2: ......
Страница 10: ...8 ...
Страница 14: ...Contents Contents 12 ...
Страница 15: ...1 Quick Start 1 ...
Страница 31: ...2 Front Panel Menu Operation 2 ...
Страница 55: ...3 Features and Functions 3 ...
Страница 126: ...124 ...
Страница 127: ...4 Remote Interface Reference 4 ...
Страница 204: ...SCPI Status System Chapter 4 Remote Interface Reference The SCPI Status Registers 202 ...
Страница 228: ...226 ...
Страница 229: ...5 Error Messages 5 ...
Страница 244: ...242 ...
Страница 245: ...6 Application Programs 6 ...
Страница 272: ...270 ...
Страница 273: ...7 Tutorial 7 ...
Страница 299: ...8 Specifications 8 ...
Страница 304: ...302 ...