7 - 17
7
Chapter 7 Remote Interface Operation
GPIB Programming Example (continued)
GPIB Programming Example (continued)
SUB SendGpibCmmd (OutputString$)
CALL ibwrt(ArbGen%, OutputString$)
‘send command to 2711A
CALL ibwrt(ArbGen%, “*ESR?”)
‘check error code
WaitDelay
(.01)
InputString$ = SPACE$(100)
CALL IBRD(ArbGen%, InputString$)
IF VAL(InputString$) AND 1 THEN PRINT “>> Operation Complete <<”;
IF VAL(InputString$) AND 2 THEN PRINT “>> Request Control ( N/I ) <<”;
IF VAL(InputString$) AND 4 THEN PRINT “>> QUERY ERROR <<”;
IF VAL(InputString$) AND 8 THEN PRINT “>> Device Dependant ERROR <<”;
IF VAL(InputString$) AND 16 THEN PRINT “>> Execution ERROR <<”;
IF VAL(InputString$) AND 32 THEN PRINT “>> Command ERROR <<”;
IF VAL(InputString$) AND 64 THEN PRINT “>> User Request ( N/I ) <<”;
IF VAL(InputString$) AND 128 THEN PRINT “>> Power On <<”;
IF VAL(InputString$) > 0 THEN PRINT “Status read : “; VAL(InputString$)
IF VAL(InputString$) > 0 THEN CALL ibwrt(ArbGen%, “*cls”)
IF VAL(InputString$) > 0 THEN BEEP
CALL ibwrt(ArbGen%, “*cls”)
END SUB
SUB WaitDelay (Sec)
StrtTime = TIMER
CurrentTime = TIMER
StpTime = St (Sec)
DO WHILE CurrentTime < StpTime
CurrentTime
=
TIMER
LOOP
END SUB
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...