User and Programming Manual - Rev H
California Instruments
May 2000
P Series
64
END IF
IF esr% AND 16 THEN
PRINT "*** Command Execution Error Reported by AC Source ***"
END IF
IF esr% AND 32 THEN
PRINT "*** Command Syntax Error Reported by AC Source ***"
END IF
'Clear ERR. -XXX Message from front panel if any error occured
IF esr% <> 0 THEN
PRINT #1, "*CLS" + CHR$(10);
END IF
END IF
LOOP UNTIL cmd$ = "QUIT" OR cmd$ = "quit"
'Close COM port on exit
CLOSE #1
END
'================================================================
FUNCTION retstring$
'This function returns a response string from the P Series
'AC power source. The QBasic state LINE INPUT cannot be used
'as the P Series does not return a CR <13> after a response
'message. The LINE INPUT functions waits for a CR before
'returning a string. The P Series returns a LF <10> instead
'so we need to poll each returned character for a LF to
'assemble the response string. The COM port needs to be
'opened AS random with a record length of 1 for to support
'this function. Also, the device number is assumed to be #1
'Optionally, this value could be passed as a parameter to
'make this program more generic.
DIM char AS STRING * 1
DIM resp AS STRING
char = ""
resp = ""
DO
char = INPUT$(1, #1)
resp = resp + char
LOOP UNTIL char = CHR$(10)
'Return result
retstring = LEFT$(resp, LEN(resp) - 1)
END FUNCTION
13.1.2 Serial Cable Diagram
Содержание 801P Series
Страница 2: ......
Страница 10: ...User and Programming Manual Rev H California Instruments May 2000 P Series 2 page intentionally left blank...
Страница 15: ...User and Programming Manual Rev H California Instruments P Series May 2000 7...
Страница 17: ...User and Programming Manual Rev H California Instruments P Series May 2000 9 page intentionally left blank...
Страница 33: ...User and Programming Manual Rev H California Instruments P Series May 2000 25 Page intentionally left blank...
Страница 39: ...User and Programming Manual Rev H California Instruments P Series May 2000 31 page intentionally left blank...
Страница 45: ...User and Programming Manual Rev H California Instruments P Series May 2000 37 page intentionally left blank...
Страница 56: ...User and Programming Manual Rev H California Instruments May 2000 P Series 48...
Страница 58: ...User and Programming Manual Rev H California Instruments May 2000 P Series 50 page left intentionally blank...
Страница 60: ...User and Programming Manual Rev H California Instruments May 2000 P Series 52 page left intentionally blank...
Страница 62: ...User and Programming Manual Rev H California Instruments May 2000 P Series 54 page left intentionally blank...
Страница 70: ...User and Programming Manual Rev H California Instruments May 2000 P Series 62 page left intentionally blank...
Страница 93: ...User and Programming Manual Rev H California Instruments P Series May 2000 85 page left intentionally blank...