Measurement Event Synchronization
Last updated: January 16, 2009
Description
Measurement event synchronization saves time by controlling the communication between the controller, the test set, and the mobile station, so that no device does something before it is supposed to (which can cause errors or do something well after it could have). Because some measurements can run concurrently, it is necessary that the control program know when individual measurement results are available.
Measurement event synchronization is accomplished using the INITiate subsystem's command INITiate:DONE? or the STATus:OPERation:NMRReady status registers.
INITiate:DONE?
The INITiate:DONE? query returns a string that indicates what, if any, measurements are ready to be fetched. This query should be used inside a loop, checking each measurement that was initiated. See
INITiate
for more details about this query.
The INITiate:DONE? query returns at least one of the following indicators for each pass through the loop:
-
"AFAN" - The audio frequency analyzer measurement results are available.
-
"SMON" - The spectrum monitor measurement results are available.
-
"WACL" - The adjacent channel leakage measurement results are available.
-
"WBER" - The loopback bit error ratio measurement results are available.
-
"WCD" - The code domain measurement results are available
-
"WCP" - The channel power measurement results are available.
-
"WILP" - The inner loop power measurement results are available.
-
"WIQT" - The IQ tuning measurement results are available.
-
"WOBW" - The occupied bandwidth measurement results are available.
-
"WOOP" - The PRACH transmit On/Off power measurement results are available.
-
"WSEM" - The spectrum emission mask measurement results are available.
-
"WTP" - The thermal power measurement results are available.
-
"WWQ" - The waveform quality measurement results are available
-
"WAIT" - There are one or more measurements which are in the measuring state which are not excluded from the query. See
INITiate:DONE:FLAG:<measurement mnemonic>
. When WAIT is returned at least one measurement is not ready to be fetched yet.
-
"NONE" - There are no measurements currently in the measuring state. This assumes no measurements have been excluded. See
INITiate:DONE:FLAG:<measurement mnemonic>
. This would indicate that all measurements results are available or none have been initiated.
Programming Example
The following example assumes that the UE is transmitting and no measurements other than channel power (WCP) and waveform quality (WWQ) are being triggered. See
Transition Filters
.
10 OUTPUT 714;"SETup:WCPower:CONTinuous OFF" !Sets channel power
20 !trigger mode to single.
30 OUTPUT 714;"SETUP:WWQuality:CONTinuous OFF" !Sets waveform quality
40 !trigger mode to single.
50 OUTPUT 714;"INITiate:WCPower;WWQuality" !Begin channel power and
60 !waveform quality measurements.
70 REPEAT
80 OUTPUT 714;"INITiate:DONE?" !Queries the test set for
90 !measurements that have completed
100 ENTER 714;Meas_done$ !String value representing DONE measurements,
110 ! NONE if no measurements are done.
120 SELECT Meas_done$ !This variable will have a value of WAIT until
130 !a measurement is DONE.
140 CASE "WCP" !Characters must be upper case.
150 OUTPUT 714;"FETCH:WCPower?" !If this case is selected,
160 !channel power results are FETCHed.
170 ENTER 714;Integrity,Wcpower_meas
180 PRINT "Average Channel Power is ";Wcpower_meas
190 CASE "WWQ" !Characters must be uppercase.
200 OUTPUT 714;"FETCH:WWQuality:EVM?" !If this case is selected,
210 !the Max EVM measurement is FETCHed.
220 ENTER 714;Evm_meas
230 PRINT "Maximum Error Vector Magnitude is ";Evm_meas
240 END SELECT
250 UNTIL Meas_done$="NONE" !When all triggered measurements have completed,
260 !the INITiate:DONE? query returns NONE.
270 END
STATus:OPERation:NMRReady:FDD
The STATus:OPERation:NMRReady:FDD command allows the program to immediately branch to the next operation or command without continuing through a loop as in INITiate:DONE? See
STATus:OPERation:NMRReady:FDD Register Bit Assignments
for more details about this command.
You must enable the following so that as soon as the enabled NMRReady bit is true the program moves on.
-
Positive or negative transition filter. See
Transition Filters
.
-
STATus:OPERation:NMRReady:FDD bit for the measurement desired.
-
STATus:OPERation:NMRReady bit (1024 for FDD) for the required system. See
STATus Subsystem Description
or
Description
.
-
STATus:OPERation bit (512 for NMRReady).
-
Service Request Enabling (*SRE 128 for NMRReady).
The
STATus:OPERation:NMRReady:FDD Register Bit Assignments
status register provides status reporting on the following measurement completions:
-
Adjacent Channel Leakage Ratio
-
Channel Power
-
Code Domain
-
Loopback Bit Error Ratio
-
Occupied Bandwidth
-
Spectrum Emission Mask
-
Thermal Power
-
Waveform Quality
Operating Considerations
Only one indicator is returned per query.
All active measurements must be set to single trigger mode. This ensures that when a measurement completes it remains in the "DONE" state rather than restarting. Sending the "*RST" command at the beginning of the test code or using the "SETup:CONTinous:OFF" command during measurement setups are ways to set the trigger to single for all measurements.