CT-BOX User’s Manual
42
2.2.14
STATUS Command
The CT-BOX has an internal status register that shows the actual status and
configuration of the instrument. The command used to read the status register is
“STATUS:?
\r
”. The reply to the read command is in the following form:
“
status_register
\r\n
”, where
status_register
is the ASCII representation of the internal
status register value. This is a read-only register.
The status register has the following structure, where the bit #32 is the MSB:
Bit #
Bit name
Description
#1
ACQ status
Indicates that the unit is acquiring the data
#2
Error condition
Indicates that an error occurred (See Error register for more detailed information
regarding the error).
#3
Alarm status
Indicates the alarm status (see Alarm command).
#4
Alarm direction
Indicates the direction of the alarm: it is high when an overcurrent event happened
and low in case of an undercurrent event. This bit has sense only if the Alarm status
is high.
#5
SD write
Indicates that the SD is used for saving the measured data.
#6
SD mounted
Indicates that the SD is mounted (See SAVE command for additional information).
#16 - #7
Reserved
For internal or future use.
#17
MODE setting
Indicates the status of the MODE setting (0 = Oscilloscope, 1 = Data logger).
#19 - #18
ACQT setting
Indicates the status of the ACQT setting:
‘000’: the optional temperature readings are disabled;
‘010’: External temperature sensor readings enabled;
‘100’: DCCT head temperature readings enabled;
‘110’: External sensor and DCCT head temperature readings enabled.
#20
Reserved
For internal or future use.
#21
PRINT setting
Indicates the status of the PRINT setting (1 = enabled).
#22
SAVE setting
Indicates the status of the SAVE setting (1 = enabled).
#23
ALARM setting
Indicates the status of the ALARM setting (1 = enabled).
#24
Trigger setting
Indicates the status of the TRG setting (1 = enabled).
#25
Trigger direction
Indicates the trigger direction (1= trigger out, 0 = trigger in).
This bit has sense only if the Trigger setting is high.
#32 - # 26
Reserved
For internal or future use.
Table 18:
STATUS register structure
Example:
STATUS read (for example the read 0x110001 indicates that the ACQ status is enabled
– bit #1 is 1; the mode of operation is oscilloscope – bit #17 is 1 and the PRINT is
enabled – bit #21 is 1:
STATUS:?
\r
0x110001
\r\n