![Tegam 2411B Скачать руководство пользователя страница 87](http://html1.mh-extra.com/html/tegam/2411b/2411b_operation-manual_1075421087.webp)
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
Содержание 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: ......