beautypg.com

Ocean Optics SAD500 Communications and Control User Manual

Page 10

background image

10

Slow Memory Available

Description: Returns the amount of available slow memory in KBytes.

Command Syntax:

U

Response:

ACK followed by {DATA WORD}

Default value:

N/A

Number of Scans in Memory

Description: Returns the number of scans in the memory.

Command Syntax:

W{

DATA WORD

}

Value:

1 = Return number of scans in fast memory
2 = Return number of scans in slow memory

Response:

ACK followed by {DATA WORD}

Default value

N/A

Fast Memory Available

Description: Returns the number of full spectra that can be stored in fast memory.

Command Syntax:

X

Response:

ACK followed by {

DATA WORD

}

Default value:

N/A

Read Out One Scan from Memory

Description: Reads out one scan from the type of memory specified. The data is returned with the header
information as described in the Spectral Acquisition command (S). To insure error free communications,
follow this command with the Scan Received OK command (O).

Command Syntax:

Z{

DATA WORD

}

Value:

1 = Read scan from fast memory
2 = Read scan from slow memory

Response:

If successful, ACK followed by data (See Spectral Acquisition [S] for header
information). If unsuccessful, NAK. NAK results if an error occurs in the flash
memory reading operation or if no data is in fast memory. See error codes for
explanation.

Default value:

N/A

ASCII Data Mode

Description: Sets the mode in which data values are interpreted to be ASCII. Only unsigned integer strings
(0 – 65535) are allowed in this mode. Data values are terminated with a carriage return (ASCII 13) or
linefeed (ASCII 10). In this mode, the SAD500 “echos” the command and data values back to the
RS-232 port.

Command Syntax:

aA

Response:

ACK or NAK

Default value:

N/A

This command requires that the string “aA” be sent without any CR or LF to insure that this mode
is not entered inadvertently.

A legible response to the Version number query (“v” command) indicates the SAD500 is in the
ASCII data mode.