7 - 14
7
‘ This program shows how to set up the 2711A for a continuous sinewave 2 Vp-p, 1.2 kHz
‘ over the RS232 interface (COM1).
‘ The 2711A communication settings must be programmed to:
‘
BAUD: 19.2K
BITS: 8D1S PAR: NONE HAND: HW
‘
Bits, parity and handshake parameters are fixed and are not programmable in the 2711A.
‘
You must use TEGAM supplied RS-232 cable.
RS-232 Programming Example
Chapter 7 Remote Interface Operation
RS-232 Programming Example
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 2711A 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 2711A Event Status Register
SendRS232Cmmd (“*rst”)
‘reset 2711A
‘Set up continuous sinewave 2 Vp-p, 1.2kHz.
CALL SendRS232Cmmd(“MODE CONT”) ‘Mode = Cont
CALL SendRS232Cmmd(“WVFM:SINE”) ‘Waveform = Sine
CALL SendRS232Cmmd(“AMPL 2.0”)
‘Amplitude = 2.0 V
CALL SendRS232Cmmd(“FREQ 1.2E3”)
‘Frequency = 1.2 kHz
STOP
Summary of Contents for 2711A
Page 9: ...1 1 1 Quick Start 1...
Page 19: ...About Arbitrary Waveforms 2...
Page 20: ...12 1 2 About Arbitrary Waveforms 2...
Page 26: ...Front Panel Menu Operation 3...
Page 27: ...3 1 3 Front Panel Menu Operation 3...
Page 34: ...Waveform Creation System 4...
Page 35: ...14 1 4 Waveform Creation System 4...
Page 39: ...Multi Instrument Operation 5...
Page 40: ...5 1 5 Multi Instrument Operation 5...
Page 45: ...5 6 5...
Page 46: ...Performance Verification 6...
Page 47: ...6 1 6 Performance Verification 6...
Page 51: ...7 1 7 Remote Interface Operation 7...
Page 68: ...7 18 7...