Chapter 7 Remote Interface Operation
RS-232 Programming Example
RS-232 Programming Example
‘This program shows how to set up the 2411B for a continuous sinewave 2 Vp-p, 1.2 kHz
‘over the RS232 interface (COM1).
‘The 2411B communication settings must be programmed to:
‘BAUD: 19.2K
BITS: 8D1S
PAR: NONE
HAND: HW
‘
Bits, partity and handshake parameters are programmable in the 2411B.
‘You must use TEGAM supplied RS-232 cable.
DECLARE SUB SendRS232Cmmd (OutputString$)
COMMON SHARED OutputString$, InputString$, CrLf$, Listen$
CrLf$=CHR$(13) + CHR$(10)
‘RS232 command terminator
Listen$=CHR$(4)
‘request query response
StartProgram:
‘Connect to 2411B and inititalize.
OPEN “COM1:19200, N, 8,1, CS1000, DS1000, BIN” FOR RANDOM AS #1
PRINT #1, CrLf$ + CrLf$
‘Flush RS232 receive buffer
SendRS232Cmmd (“*cls)
‘clear 2411B Event Status Register
SendRS232(“*rst)
‘reset 2411B
‘Set up continuous sinewave 2 Vp-p, 1.2kHz in STDW.
CALL SendRS232Cmmd(“outsw on”)
‘turn output on
CALL SendRS232Cmmd(“FUNC WAVE, STDW”)
‘select standard wave on
CALL SendRS232Cmmd(“WVFM:WAVE STDW; SINE 1, 0”) ‘Waveform=Sine
CALL SendRS232Cmmd(“AMPL 2.0”)
‘Amplitude = 2.0V
CALL SendRS232Cmmd(“SCLK 1.2E6”)
‘Sclk = 1.2 MHz
CALL SendRS232Cmmd(“exec”)
‘execute the above commands
STOP
END
7-16
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: ......