Chapter 7 Remote Interface Operation
RS-232 Programming Example (continued)
RS-232 Programming Example (continued)
SUB SendRS232Cmmd (OutputString$)
PRINT #1, OutputString$ + CrLf$;
‘send command to 2411B
PRINT #1, “esr?” + CrLf$;
‘check error code
PRINT #1, Listen$;
LINE INPUT #1, QueryResponse$
StringPos = 0
TrimRxString:
‘flush ‘LFs’ from previous LINE
StringPos = Str 1
IF MID$(QueryResponse$, StringPos, 1) < “ “THEN GOTO TrimRxString
QueryResponse = VAL(RIGHT$(QueryResponse$, StringPos))
‘Print the description of error if any
IF QueryResponse AND 1 THEN PRINT “>> Operation Complete<<”;
IF QueryResponse AND 2 THEN PRINT “>> Request Control (N/I) <<”;
IF QueryResponse AND 4 THEN PRINT “>> QUERY ERROR <<”;
IF QueryResponse AND 8 THEN PRINT “>> Device Dependant ERROR <<”;
IF QueryResponse AND 16 THEN PRINT “>> Execution ERROR <<”;
IF QueryResponse AND 32 THEN PRINT “>> Command ERROR <<”;
IF QueryResponse AND 64 THEN PRINT “>> User Request ( N/I) <<”;
IF QueryResponse AND 128 THEN PRINT “>> Power On <<”;
IF QueryResponse > 0 THEN PRINT “ Status read : “;QueryResponse
END SUB
7-17
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: ......