Status Register
The internal status register shows the actual status and configuration of the CT-BOX instrument. It is read-only, is read with STATUS:? and is returned as an ASCII hexadecimal value.
The register has the following structure, where bit #32 is the MSB:
Bit # |
Bit name |
Description |
|---|---|---|
|
ACQ status |
Indicates that the unit is acquiring data (see ACQ) |
|
Error condition |
Indicates that an error occurred; see the Error Register for detailed information |
|
Alarm flag |
Indicates the alarm flag (see ALARM) |
|
Alarm direction |
High when an over-current event happened, low in case of an under-current event. Meaningful only if Alarm status is high |
|
SD write |
Indicates that the SD card is being used for saving the measured data |
|
SD mounted |
Indicates that the SD card is mounted (see SD) |
|
Reserved |
For internal or future use |
|
MODE_MSB |
MSB of the MODE setting (see table below) |
|
Calibration password |
Indicates the status of the PASSWORD setting ( |
|
Reserved |
For internal or future use |
|
Reserved |
For internal or future use |
|
MODE_LSB |
LSB of the MODE setting (see table below) |
|
ACQT setting |
Indicates the status of the ACQT setting (see table below) |
|
Reserved |
For internal or future use |
|
PRINT setting |
Indicates the status of the PRINT setting ( |
|
SAVE setting |
Indicates the status of the SAVE setting ( |
|
ALARM setting |
Indicates the status of the ALARM setting ( |
|
Trigger setting |
Indicates the status of the TRG setting ( |
|
TRG_MSB |
MSB of the TRG setting (see table below). Meaningful only if bit |
|
ADC temp OK |
The temperature of the CT-BOX is OK |
|
DMM_MSB |
MSB of the DMM setting (see table below) |
|
DMM_LSB |
LSB of the DMM setting (see table below) |
|
TRG_LSB |
LSB of the TRG setting (see table below). Meaningful only if bit |
|
Reserved |
For internal or future use |
MODE Setting Bits (#13 & #17)
Bit 13 |
Bit 17 |
Meaning |
|---|---|---|
|
|
MODE = OSC |
|
|
MODE = DLOG |
|
|
NOT USED |
|
|
MODE = DMM |
ACQT Setting Bits (#19 – #18)
Bit 19 |
Bit 18 |
Meaning |
|---|---|---|
|
|
Optional temperature readings are disabled |
|
|
External temperature sensor readings enabled |
|
|
DCCT temperature readings enabled |
|
|
External temperature and DCCT temperature readings enabled |
TRG Setting Bits (#24, #25 & #29)
Bit #24 tells whether the trigger is enabled. Only when bit #24 is 1 do
bits #25 and #29 give the trigger configuration (IN, OUT or GATE). When
bit #24 is 0 the trigger is disabled and bits #25 and #29 carry no
information; ignore them.
Bit 24 |
Bit 25 |
Bit 29 |
Meaning |
|---|---|---|---|
|
|
|
Trigger disabled (bits 25 and 29 ignored) |
|
|
|
Trigger enabled, TRG:IN |
|
|
|
Trigger enabled, TRG:GATE |
|
|
|
Trigger enabled, TRG:OUT |
|
|
|
NOT USED |
DMM Setting Bits (#27 – #28)
Bit 27 |
Bit 28 |
Meaning |
|---|---|---|
|
|
NOT USED |
|
|
DMM:DC |
|
|
DMM:AC |
|
|
DMM:ACDC |
Example:
The read value 0X00110001 indicates that the ACQ status is enabled (bit #1
is 1), the mode of operation is data-logger (bit #17 is 1 and bit #13 is 0) and the
printing is enabled (bit #21 is 1):
STATUS:?
0X00110001