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
Содержание 2711A
Страница 9: ...1 1 1 Quick Start 1...
Страница 19: ...About Arbitrary Waveforms 2...
Страница 20: ...12 1 2 About Arbitrary Waveforms 2...
Страница 26: ...Front Panel Menu Operation 3...
Страница 27: ...3 1 3 Front Panel Menu Operation 3...
Страница 34: ...Waveform Creation System 4...
Страница 35: ...14 1 4 Waveform Creation System 4...
Страница 39: ...Multi Instrument Operation 5...
Страница 40: ...5 1 5 Multi Instrument Operation 5...
Страница 45: ...5 6 5...
Страница 46: ...Performance Verification 6...
Страница 47: ...6 1 6 Performance Verification 6...
Страница 51: ...7 1 7 Remote Interface Operation 7...
Страница 68: ...7 18 7...
Страница 69: ...8 1 8 Advanced Remote Operation 8...