Ocean Optics SAD500 Communications and Control User Manual

Page 6

Advertising
background image

6

Integration Time

Description: Sets the S2000’s and S1024DW’s integration time, in milliseconds, to the value specified.

Command Syntax:

I{

DATA WORD

}

Response:

ACK or NAK

Range:

5 - 65535

Default value:

100

Strobe Enable

Description: Sets the S2000’s and S1024DW’s S0 (Strobe enable) line to the value specified. This
command only has an effect in trigger modes 0 and 1.

Command Syntax:

J{

DATA WORD

}

Value:

0 = Light source/strobe off--S0 low
1 = Light source/strobe on--S0 high

Response:

ACK or NAK

Default value:

1

Baud Rate

Description: Sets the SAD500’s baud rate.

Command Syntax:

K{

DATA WORD

}

Value:

0=2400
1=4800
2=9600
3=19200
4=38400
5=57600
6=115200

Response:

See below

Default value:

2

When changing baud rates, the following sequence must be followed:
1. Controlling program sends K with desired baud rate, communicating at the old baud rate
2. A/D responds with ACK at old baud rate, otherwise it responds with NAK and the process is aborted
3. Controlling program waits longer than 50 milliseconds
4. Controlling program sends K with desired baud rate, communicating at the new baud rate
5. A/D responds with ACK at new baud rate, otherwise it responds with NAK and old baud rate is used

If a deviation occurs at any step, the previous baud rate is utilized.

The SAD500 has a one byte input buffer. When communicating at 115,200 baud, we strongly
recommend implementing a 1 millisecond delay between the transfer of each byte. The 1
millisecond delay ensures that this one byte buffer is not overrun.

Advertising