beautypg.com

Ocean Optics SAD500 Communications and Control User Manual

Page 7

background image

7

Clear Memory

Description: Clears memory based upon the value specified. If slow memory is cleared, the current
operating parameters are written back to flash memory since the read and write pointers need to be
reinitialized. This process takes ~7 seconds. Clearing fast memory is immediate (<50us).

Command Syntax:

L{

DATA WORD

}

Value:

0 = Both fast and slow memory
1 = Fast memory
2 = Slow memory

Response:

ACK or NAK

Default value:

N/A

CAUTION: All stored spectra are lost when the clear memory command is executed.

Data Storage Mode

Description: Sets the data storage mode for future spectral acquisitions.

Command Syntax:

M{

DATA WORD

}

Value:

0 = Scans transmitted through the serial port
1 = Scans stored in fast memory
2 = Scans stored in slow memory

Response:

ACK or NAK

Default value:

0

Number of Scans to Store

Description: Sets the number of scans to be acquired and stored. If the Data Storage Mode (M) value is 0
(transmits the data immediately) then this parameter must be 1. If this condition is not true when the
Spectral Acquisition command (S) is sent, then an ETX is returned.

Command Syntax:

N{

DATA WORD

}

Response:

ACK or NAK

Range:

1 - 65535

Default value:

1

Scan Received OK

Description: Communicates whether or not the entire set of scan data was received successfully. If an O1
command is executed, the entire set of spectral data is re-transmitted. This optional feature can be utilized
only if no other command is issued between the Scan (S) command and this command.

Command Syntax:

O{

DATA WORD

}

Value:

0 = Data received OK – No action taken
1 = Data transmission in error – re-transmit the previous scan

Response:

ACK or NAK

Default value:

N/A