Download User Manual

Transcript
?VAL
Query channels, timer and/or I/O values
Syntax:
?VAL [{TIMER | CHn | IOn | <alias> | $IO | $MCA | $ALL} …]
Answer:
Answer: <value> …
Description:
The ?VAL query returns current values of the system timer, the input channels or the I/O
lines. The query arguments are treated as a list of requested values. ?VAL returns the
current values in the same order as they are present in the argument list.
Input channel and I/O lines can be specified either by means of generic identifiers CHn
and IOn, or by system aliases. The system timer must be specified by the built-in alias
TIMER.
The full block of I/O lines can be requested as a single 16-bit value by means of the $IO
keyword.
The $MCA keyword can be used to request the following 4 values related to MCA
acquisition: the system timer, the total number of MCA counts, the MCA lifetime and the
MCA deadtime. The last three correspond to input channels configured in MCA, MCALT
and MCADT modes respectively. See the CHCFG command for details. If no channels are
configured in any of those modes, the corresponding value is returned by the ?VAL query
is -1. If more that one input channel is configured in the same MCA related mode,
something that is probably useless but possible, only the value of the first one is used.
The $ALL keyword can be used as a shortcut to request the values of the system timer
and all the input channels and I/O lines. In practice the $ALL keyword returns 8 values and
is equivalent to the sequence: TIMER CH1 CH2 CH3 CH4 CH5 CH6 $IO.
?VAL queries with no arguments are interpreted as ?VAL $ALL.
Examples:
Command:
?ALIAS
Answer:
$
CH1 PHI
IO3 SHCMD
$
Command:
?VAL CH3 IO11 TIMER SHCMD
Answer:
87363543 0 16738372 1
Command:
?VAL
Answer:
16738372 14564 -5353667 0 87363543 34556 0 0x0F70
Command:
?VAL PHI $IO
Answer:
-5353667 0x0F70
Command:
?VAL $MCA
Answer:
16738372 34556 -1 -1
MUSST User Manual
74 of 100