Program Examples CMU
1100.4903.12 7.6 E-4
CMUBASE: TRACE:REMOTE:MODE:FILE ON Remote trace to file
CMUBASE: TRACE:REMOTE:MODE:DISPLAY ON Remote trace display ON
CMUBASE: TRACE:REMOTE:MODE:SRQ ON Display SRQ event on remote trace window
CMUBASE: STATUS:PRESET Reset status register system
CMUBASE: *STB? Check status byte
CMUBASE: *SRE? Check service request enable
CMUBASE: *SRE 128 Service request for OPERATION register
CMUBASE: *STB? Check status byte
CMUBASE: STAT:OPER:SYMB:ENAB? Check symbolic status register enable --> NONE
CMUBASE: STAT:OPER:SYMB:ENAB RFNL Enable symbolic status register evaluation
(event Reference Frequency Not Locked = RFNL )
[l_LOOP]
if CMUBASE: *STB? <> 0 goto read_event Read STB Bit 7 is set (that is SRQ)
PAUSE 2000 Wait 2 seconds
goto l_LOOP
[read_event]
CMUBASE: STAT:OPER:EVENT:SADD? Eval. which SecAddr causes the Event? --> CMUBASE
CMUBASE: STAT:OPER:SYMB? Eval. which bit (event) causes SRQ --> RFNL
CMUBASE: *STB?
CMUBASE: *STB?
goto l_LOOP