Section 7: Serial API
D4K25 Service Manual
7-3
020-100880-01 Rev. 1 (06-2012)
DATA LOGGING (DLG)
Set/get the lowest log level to write to the engineering log, also extract data from log in text format.
Levels are:
0 =
Trace: Level test output, threading info, protocol.
1 = Debug: Debug messages.
2 = Info: Informational messages.
3 = Notices: Event of importance
4 = Warning: Warnings
5 = Error: An error has occurred
6 = Clear: An error has been cleared
SUBCODE
DESCRIPTION OF USE
NONE
Set/get the minimum log level to write to the log
.
EXLG
Extract entries from log files. Requires 3 parameters: ”startdate”, “enddate”, “logtype”. The data parame-
ters require the date in the format “yyyymmdd”. The logtype parameter can have the following values:
“ENG” (engineering),
“SEC” (security),
“OPR” (operational),
“MAI” (maintenance),
“EVE” (event),
“SYS” (system),
“ALL”.
EXAMPLES:
(DLG “20091108” “20091110” “ALL”)
(DLG+EXLG!”Log data extracted to filename ‘logextract.txt’ on FTP root”)
(DLG 2) Set current logging level to 2
(DLG?) Get current logging level. Response is (LDG!00002 “Info”)
DATA FORMAT (DTF)
Select data packing format for selected input. Available data formats depends on current input port (as selected by SIN).
SUBCODE
DESCRIPTION OF USE
Cxxx
Replace xxx with the channel number. Valid range is 101 - 164.
NONE
Select data format for current channel
EXAMPLES:
(DTF?) Get current data format
(DTF?L) Show entries on the list
(DTF 1) Set current data format to 1 (292: 422 Packed 12Bit)
(DTF+C108?) Get data format on channel 108
(DTF+C108 20) Use data format 20 (DVI: Unpacked 8Bit) on channel 108