Tutorial > Response of multiple points measurement (SCALar and ARRay)
Response of multiple points measurement (SCALar and ARRay)
When all the measurements specified by the trigger count are complete, the response (ASCII character 1) to the *OPC? query can be retrieved. Then, the data can be retrieved using the FETC[:<meter_fn>]? query, etc. The response in this case is the result obtained by averaging all the specified number of counts of data. However, if invalid data such as over range exists in the values of the multipoint measurement, such data is excluded from the averaging process. If the data of all counts are invalid, invalid data (SCPI INF = 9.9E37 for over range and SCPI NINF = -9.9E37 for under range) is returned as the average data.
A node [SCAL] 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 ARR. In this case, multiple points of measured data separated by commas are returned according to the trigger count designation.
Trigger count |
2nd node |
response |
1 |
[SCALar] |
A single measured value |
ARRay |
A single measured value |
|
2 or greater |
[SCALar] |
Average of all measured data points (excluding invalid data) |
ARRay |
Array of all measured data points separated by commas |
Example:
FETC:ARR:IMP? | 'Query the impedance data (absolute value) that has been measured in an array. | |
(Read the response) | ||
FETC:ARR:IMP:RES? | 'Query the impedance data (resistance) that has been measured in an array. | |
(Read the response) | ||
FETC:ARR:IMP:REAC? | 'Query the impedance data (reactance) that has been measured in an array. | |
(Read the response) | ||
FETC:ARR:IMP:PHAS? | 'Query the impedance data (phase) that has been measured in an array. | |
(Read the response) | ||
READ:ARR:VOLT? | 'Start the voltage measurement and query the data in an array. | |
(Read the response) | ||
FETC:ARR:CURR? | 'Query the current data that was measured simultaneously with the voltage measurement in an array. | |
(Read the response) |