Chapter 7 Remote Interface Operation
GPIB Programming Example
GPIB Programming Example
‘This program shows how to set up the 2411B for a continuous sinewave 2 Vp-p, 1.2 kHz
‘over the GPIB interface.
‘
DECLARE SUB SendGpibCmmd (OutputString$)
DECLARE SUB WaitDelay (Sec!)
REM $INCLUDE: ‘qbdecl.bas’
‘National Instruments GPIB
‘driver software
COMMON SHARED ArbGen%, OutputString$, InputString$
StartProgram:
‘Connect to 2411B and initialize.
CALL ibdev (0, 16, 0, 12, 1, 0, ArbGen%)
‘connect 2411B at addr 16
CALL IBCLR (ArbGen%)
CALL SendGpibCmmd (“*cls)
‘clear 2411B Event Status
‘Register
CALL SendGpibCmmd (“*rst)
‘reset 2411B
‘Set up continuous sinewave 2 Vp-p, 1.2kHz in STDW.
CALL SendGpibCmmd (“outsw on”)
‘turn output on
CALL SendGpibCmmd (“FUNC WAVE,STDW”)
‘select standard wave on
CALL SendGpibCmmd (“WVFM:WAVE STDW;SINE 1,0”)
‘Waveform = Sine
CALL SendGpibCmmd (“AMPL 2.0”)
‘Amplitude = 2.0 V
CALL SendGpibCmmd (“SCLK 1.2E6”)
‘Sclk = 1.2 MHz
CALL SendGpibCmmd (“exec”)
‘execute the above commands
IBLOC (ArbGen%)
STOP
END
7-18
Содержание 2411B
Страница 10: ...1 Quick Start...
Страница 22: ......
Страница 23: ...2 About Arbitrary Waveforms...
Страница 30: ......
Страница 31: ...Chapter 2 About Arbitrary Waveforms 2411B Block Diagram 2 8 Block Diagram...
Страница 32: ...3 Front Panel Menu Operation...
Страница 41: ...4 Waveform Creation System...
Страница 43: ...Chapter 4 Waveform Creation System User Interface for the Waveform Creation System 4 3...
Страница 61: ...5 Multi Instrument Operation...
Страница 68: ...6 Performance Verification...
Страница 71: ...Chapter 6 Performance Verification Verification Test Sheet 6 4...
Страница 72: ...7 Remote Interface Operation...
Страница 78: ...Chapter 7 Remote Interface Operation Command Set Command Set 7 7...
Страница 79: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 8...
Страница 80: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 9...
Страница 81: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 10...
Страница 82: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 11...
Страница 83: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 12...
Страница 84: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 13...
Страница 91: ...8 Advanced Remote Operation...
Страница 125: ...Appendix...
Страница 133: ...AMPLITUDE OFFSET RANGES...
Страница 134: ...INDEX...
Страница 140: ......