135
S:\Hp8960\E1960A GSM Mobile Test Application\A.04 Release\Reference_Manual\Chapters\prog_meas_synch.fm
Measurement Event Synchronization
Example 1. Generating a Service Request (SRQ) Interrupt - Bit Error Rate NMRR
The following example illustrates the use of the STATus subsystem to generate a service request when a
BERR measurement has completed. This code assumes a call is already connected and the BERR
measurement is setup (mobile station must be in loopback type A or B).
10 OUTPUT 714;”STATUS:OPERATION:NMRREADY:GSM:PTR 256” !Enable positive transition
20 !filter on fast BER bit.
30 OUTPUT 714;”STATUS:OPERATION:NMRREADY:GSM:ENABLE 256” !Enable the fast BER Bit to
40 !generate a summary message.
45 OUTPUT 714;”STATUS:OPERATION:NMRREADY:ENABLE 4” !Enable the GSM summary bit.
50 OUTPUT 714;”STATUS:OPERATION:ENABLE 512” !Enable the Operation summary bit to
60 !generate a summary message.
70 OUTPUT 714;”*SRE 128” !Enable the service request enable register to generate SRQ.
80 OUTPUT 714;”*CLS” !Clear all status data structures.
90 ON INTR 7,15 CALL Meas_complete !Define interrupt-initiated branch with a priority
100 !of 15 (highest)
110 ENABLE INTR 7;2 !Enable interrupt on interface card 7 with a bit mask
120 !(for interface’s interrupt-enable register) of 2.
130 OUTPUT 714;”SETUP:FBER:CONTINUOUS OFF;:INITIATE:FBERROR” !Initiate a single
140 !fast BER test.
150 LOOP
160 DISP “Waiting for BERR test to complete”
170 WAIT .1 !”Dummy” loop
180 END LOOP
190 !Instead of a “dummy” loop, controlling application could be performing setups,
200 !making measurements, etc.
210 END
220 SUB Meas_complete
230 DISP “BER test complete, OK to FETCh results now”
240 Clear_interrupt=SPOLL(714) !Clear the RQS message in the status byte register.
250 STOP
260 SUBEND
Operating Considerations
Only one indicator is returned per query.
To ensure that when a measurement completes it will remain in a state that qualifies it as DONE, use the
SETup subsystem to set all active measurements to single (CONTinous:OFF) trigger mode.
Related Topics
*******************************************************
“INITiate Command Functions” on page 353
“What Happens When a Measurement is INITiated?” on page 353
“Concurrent Measurements” on page 122
*******************************************************
Содержание 8960 Series 10
Страница 26: ...26 Contents ...
Страница 363: ...363 S Hp8960 E1960A GSM Mobile Test Application A 04 Release Reference_Manual Chapters hpib_read fm READ ...
Страница 500: ...500 S Hp8960 E1960A GSM Mobile Test Application A 04 Release Reference_Manual ch_gen_usage fm General Usage ...
Страница 574: ...574 S Hp8960 E1960A GSM Mobile Test Application A 04 Release Reference_Manual ch_error_messages fm Error Messages ...