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
Summary of Contents for 2411B
Page 10: ...1 Quick Start...
Page 22: ......
Page 23: ...2 About Arbitrary Waveforms...
Page 30: ......
Page 31: ...Chapter 2 About Arbitrary Waveforms 2411B Block Diagram 2 8 Block Diagram...
Page 32: ...3 Front Panel Menu Operation...
Page 41: ...4 Waveform Creation System...
Page 43: ...Chapter 4 Waveform Creation System User Interface for the Waveform Creation System 4 3...
Page 61: ...5 Multi Instrument Operation...
Page 68: ...6 Performance Verification...
Page 71: ...Chapter 6 Performance Verification Verification Test Sheet 6 4...
Page 72: ...7 Remote Interface Operation...
Page 78: ...Chapter 7 Remote Interface Operation Command Set Command Set 7 7...
Page 79: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 8...
Page 80: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 9...
Page 81: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 10...
Page 82: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 11...
Page 83: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 12...
Page 84: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 13...
Page 91: ...8 Advanced Remote Operation...
Page 125: ...Appendix...
Page 133: ...AMPLITUDE OFFSET RANGES...
Page 134: ...INDEX...
Page 140: ......