Home Previous Next


Symbolic Status Event Register Evaluation

The following example program shows how the EVENt part of the STATus:OPERation registers can be read using the commands for symbolic status register evaluation typed in boldface. The program provokes and evaluates the event Reference Frequency Not Locked (RFNL) which is reported by bit no. 6 of the STATus:OPERation:CMU:SUM1:CMU1 sub-register assigned to the CMU base system (see Symbolic Status Event Register Evaluation and STATus:OPERation Register).

CMUBASE: *RST;*OPC?

Reset the instrument; prevent the following command from being executed before *RST is complete 

CMUBASE: *CLS 

Clear output buffer, set status byte

CMUBASE: CONF:SYNC:FREQ:REF:MODE?

 

CMUBASE: CONF:SYNC:FREQ:REF:MODE EXT

Provoke event -> Reference Frequency Not Locked (external reference frequency selected but no external input signal available)  

 

 

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 

 


Home Previous Next