A query is defined for each setting command unless explicitly specified otherwise. It is formed by adding a question mark to the associated setting command. According to SCPI, the responses to queries are partly subject to stricter rules than in standard IEEE 488.2.
1. | The requested parameter is transmitted without header. |
Example: TRIGger:THReshold? | |
Response: LOW
| |
2. | Maximum values, minimum values and all further quantities, which are requested via a special text parameter are returned as numerical values |
Example: CONFigure:POWer:CONTrol:REPetition?
MAX | |
Response: 10000
| |
3. | Numerical values are output without their unit. Physical quantities are referred to the basic units or to the units set using the Unit command. |
Example: SENSe:SPECtrum:FREQuency:STARt? | |
Response: 1E6 for
1 MHz | |
4. | Boolean values are returned as 0 (for OFF) and 1 (for ON). |
Example: SOURce:DM:CLOCk:STATe? | |
Response: 1
| |
5. | Text (character data) is returned in a short form (see also next section). |
Example: FETCh:SPECtrum:STATus?
| |
Response: ERR
|