CT-BOX User’s Manual
48
2.3.2
SAVE Command
The SAVE command allows to enable or disable saving the measured data to
the external SD-card. This function works only in the
Data-Logger mode
. This
function is disabled in the Oscilloscope mode, because the acquired data quantity is too
large to be transferred on the SD-card.
The saving to the SD memory card is enabled as soon as the command
“SAVE:ON
\r
” is received. A disable command “SAVE:OFF
\r
” has to be sent in order
to stop the data saving function.
When the command is correctly processed, the unit replies with an acknowledge
(“ACK
\r\n
”). If an error happened during the data saving (for example a SD card is full
or SD card write error), the SAVE is automatically stopped and the relative error
condition is signaled in the Error register and the “Error condition” bit is set in the
Status register. This error does not affect the acquisition. To resume the saving the
acquisition has to be stopped, the fault has to be solved. At this point the SAVE can be
enabled again.
Please pay attention: the
SD card must be mounted
before starting the
acquisition with SAVE function enabled (see SD:MOUNT command).
The command used to read the actual SAVE status is: “SAVE:?
\r
”. The reply to
the save status read is in the following form: “
save_status
\r\n
”, where
save_status
is
“ON” when the saving is enabled and “OFF” when the saving is disabled.
SAVE Command:
(SAVE:
parameter
\r)
Parameter
Command description
Type of
command
Return value
ON
Enable saving to the SD card
Set
ACK
OFF
Disable saving to the SD card
Set
ACK
?
Read the saving configuration
Read
ON – saving is enabled
OFF – saving is disabled
Table 23:
SAVE command
Examples:
Enable the data saving to the external SD-card:
SAVE:ON
\r
ACK
\r\n
Read the saving configuration:
SAVE:?
\r
ON
\r\n