
Programming Examples
NRT
1080.9506.02
D.6
E-6
Failure:
’Read error queue.
CALL IECOUT("SYSTEM:ERROR?")
CALL IECIN(ERROR$)
PRINT "Error text:"; ERROR$
RETURN
Questionablestatus:
’Read Questionable Status register.
CALL IECOUT("STATus:QUEStionable:EVENt?")
CALL IECIN(Ques$)
IF (VAL(Ques$) AND 8) > 0 THEN PRINT "Power ranging control"
’Power value questionable,
IF (VAL(Ques$) AND 512) > 0 THEN PRINT "SWR-warning"
’Standing wave ratio questionable,
IF (VAL(Ques$) AND 1024) > 0 THEN PRINT "Sensor warning"
IF (VAL(Ques$) AND 2048) > 0 THEN PRINT "Burst parameters invalid"
RETURN
Operationstatus:
’Read Operation-Status register.
CALL IECOUT("STATus:OPERation:EVENt?")
CALL IECIN(Oper$)
IF (VAL(Oper$) AND 2) > 0 THEN PRINT "Initializing sensor"
IF (VAL(Oper$) AND 16) > 0 THEN PRINT "Measurement started"
IF (VAL(Oper$) AND 32) > 0 THEN PRINT "Waiting for trigger"
IF (VAL(Oper$) AND 256) > 0 THEN PRINT "Battery operation"
IF (VAL(Oper$) AND 512) > 0 THEN PRINT "Determination of max./min values active"
RETURN
Esrread:
’Read Event-Status register,
CALL IECOUT("*ESR?")
’Read ESR.
CALL IECIN(Esr$)
IF (VAL(Esr$) AND 1) > 0 THEN PRINT "Operation complete"
IF (VAL(Esr$) AND 4) > 0 THEN GOTO Failure
IF (VAL(Esr$) AND 8) > 0 THEN PRINT "Device dependent error"
IF (VAL(Esr$) AND 16) > 0 THEN GOTO Failure
IF (VAL(Esr$) AND 32) > 0 THEN GOTO Failure
IF (VAL(Esr$) AND 64) > 0 THEN PRINT "User request"
IF (VAL(Esr$) AND 128) > 0 THEN PRINT "Power on"
RETURN
REM **********************************************************
REM ---------------------------- Error routine -----------------------------------
Errorhandling:
PRINT "ERROR"
’Output error message,
STOP
’Abort program.
REM*******************************************************************************
REM*******************************************************************************
深圳德标仪器
135-1095-0799
Содержание NRT 1080.9506.02/.62
Страница 2: ...深圳德标仪器 135 1095 0799 ...
Страница 4: ...深圳德标仪器 135 1095 0799 ...
Страница 6: ...深圳德标仪器 135 1095 0799 ...
Страница 16: ...深圳德标仪器 135 1095 0799 ...
Страница 18: ...深圳德标仪器 135 1095 0799 ...
Страница 178: ...深圳德标仪器 135 1095 0799 ...
Страница 190: ...深圳德标仪器 135 1095 0799 ...