Tutorial > Measurement Using a Single Measurement Function > Measurement using software triggers
Measurement Using a Single Measurement Function
Measurement using software triggers
To start the measurement using a software trigger, set the trigger source to BUS. After INIT, the KFM2005 enters the trigger-wait status (WTG). Send a software trigger (*TRG command or the IEEE488.1 get message) to start the measurement. When one measurement is completed, the KFM2005/KFM2030 enters the trigger-wait status again. Then, send the next software trigger. To check whether the KFM2005 has entered the WTG status, read the SEQ1 bit (for impedance measurement) or the SEQ2 bit (for voltage or current measurement) of the STAT:OPER:TRIG register.
Operation using a software trigger
CONF:IMP | ||
TRIG:SEQ1:COUN 4 | ||
TRIG:SEQ1:TIM 1.0 | ||
TRIG:SEQ1:SOUR TIM | ||
*CLS;INIT | ||
[Status check] | ||
STAT:OPER:TRIG? | 'If the SEQ1 bit is not set, return to [Status check]. | |
(Read the response) | ||
*TRG | 'Send a software trigger. 'If the number of sent triggers is less than 4, return to [Status check]. |
|
*OPC? | 'When the measurement is complete, 1 is retrieved. | |
(Read the response) | ||
FETC:IMP? | 'Query the impedance data (absolute value) that has been measured. | |
(Read the response) | ||
FETC:IMP:RES? | 'Query the resistance data. | |
FETC:IMP:REAC? | 'Query the reactance data. | |
FETC:IMP:PHAS? | 'Query the phase data. | |
(Read the response) |
If the trigger source is set to BUS, the READ[:<meter_fn>]? query cannot be used to instruct a measurement start. This is because, there is no way to send a software trigger after sending the READ[:<meter_fn>]? query without canceling it. The measurement started with READ can be aborted only with the ABOR, *RST, and *RCL commands or the IEEE488.1 sdc and dcl messages.
If the trigger source is set to BUS, do not send an *OPC? query when the number of sent triggers has not reached the trigger count. If you do, a deadlock occurs between the software trigger transmission and the *OPC query. The response to *OPC? is never provided. If a software trigger is sent to continue the measurement, *OPC? is aborted.
When all measurements specified by the trigger count are completed, the data can be retrieved using the FETC[:<meter_fn>]? query. The response is the result obtained by averaging the specified trigger counts of data.
A node [SCALar] is hidden in the MEAS, READ, and FETC queries. [SCAL] is a default presentation designation that can be omitted. It returns a single value regardless of the trigger count designation. Another presentation that can be specified is ARRay. In this case, multiple points of measured data separated by commas are returned according to the trigger count designation.