Ocean Optics SAD500 Communications and Control User Manual
Page 4

4
Command Descriptions
A detailed description of all SAD500 commands follows. The {} indicates a data value which is interpreted
as either ASCII or binary (default). The default value indicates the value of the parameter setting when the
Initialize command (Q) is executed.
Add Scans
Description: Sets the number of discrete spectra to be summed together. Since this routine can add up to 15
spectra, each with a maximum intensity of 4096, the maximum returned spectral intensity is 65535.
Command Syntax:
A{
DATA WORD
}
Response:
ACK or NAK
Range:
1-15
Default value:
1
Pixel Boxcar Width
Description: Sets the number of pixels to be averaged together. A value of n specifies the averaging of n
pixels to the right and n pixels to the left. This routine uses 32-bit integers so that overflow cannot occur;
however, the result is truncated to a 16-bit integer prior to transmission of the data.
Command Syntax:
B{
DATA WORD
}
Response:
ACK or NAK
Range:
0-500
Default value:
0
Close Session
Description: Sets the operating parameters to the non-volatile flash memory and controls the baud rate the
next time the SAD500 powers up. This command stores the current slow memory read and write pointers,
which control where data is written to and read from. If this command is not executed at the end of the
session, an invalid write pointer would be recalled and previously written data would be overwritten.
Command Syntax:
C{
DATA WORD
}
Value:
0 = Do not store parameters
1 = Store all parameters except baud rate
2 = Store all parameters including the current baud rate
3 = Store all parameters except set baud rate to its default value
Response:
ACK or NAK. A NAK value can be generated if an error occurs in the flash
memory writing operation. See error codes to explanation.
Default value:
N/A
If the user issues the C3 command, the current baud rate remains unchanged; the default baud rate
is not used until the next power-up.
During sessions where the SAD500 has written data to slow memory, failure to issue this command
prior to the interruption of power will result in unretrieved data.