Getting Started Guide: Cobra OCT Spectrometers
Page 12
Serial Command Specification
Initialize
Command:
init
Response:
‘<ok>\n’
Remarks:
Initializes sensor registers; must be
done before any other commands.
System Reset
Command:
srst
Response:
‘<ok>\n’ if value is accepted. ‘<err>\n’
otherwise.
Remarks:
Resets sensor.
Gain
Command:
gain
Response:
‘<ok>\n’
Remarks:
Sets the sensor gain. Range is 0 to 255.
This command can be sent without a parameter
to read the current value. Only integer values are
accepted
Offset
Command:
offset
Response:
‘<ok>\n’
Remarks:
Sets the sensor offset. Range is 0 to
255. This command can be sent without a
parameter to read the current value. Only
integer values are accepted
Integration Time
Command:
int
Response:
‘<ok>\n’
Remarks:
Sets the integration time in
microseconds. The valid range is 1 to 32,767 µs.
This command can be sent without a parameter
to read the current value. This should only be set
when the camera is NOT scanning (i.e. after an
lsc 0 command). The integration time must be at
least 2 microseconds less than the line time
(ltm).
Line Time
Command:
ltm
Response:
‘<ok>\n’
Remarks:
Sets the line time in microseconds.
Valid range is 22 to 65,535 µs. The ltm must be
larger than the integration time. This command
can be sent without a parameter to read the
current value. This should only be set when the
camera is NOT scanning (i.e. after an lsc 0
command).
Trigger Source
Command:
ats <0 or 1>
Response:
‘<ok>\n’
Remarks:
Sets the trigger source. A value of 0
designates an internal trigger and a value of 1
designates an external trigger. The default
setting is the internal trigger generated from the
line time. This should only be set when the
camera is NOT scanning (i.e. after an lsc 0
command).
Line Scan Control
Command:
ltm <0 or 1>
Response:
‘<ok>\n’
Remarks:
Line scan control. Set to 1 to start
scanning, set to 0 to stop scanning.