|
clSerialOpen
|
|
| Index
|
|
|
| An integer specifying the zero-based index of the serial device. Must not be higher than n-1, where n is a number of camera-link serial devices in the system.
|
|
|
| Settings
|
|
|
| A string specifying the serial device's baud rate, parity, data bit, and stop bit attributes. It is composed of four settings and has the following format: "BBBB,P,D,S", where BBBB is the baud rate, P is the parity, D is the number of data bits, and S is the number of stop bits.
|
|
|
| The following table lists the valid baud rates.
|
|
|
|
110
|
|
300
|
|
600
|
|
1200
|
|
2400
|
|
4800
|
|
9600 (Default)
|
|
14400
|
|
19200
|
|
28800
|
|
38400
|
|
56000
|
|
57600
|
|
115200
|
|
128000
|
|
256000
|
|
|
| The following table describes the valid parity values.
|
|
|
|
E
|
Even
|
|
M
|
Mark
|
|
N
|
(Default) None
|
|
O
|
Odd
|
|
S
|
Space
|
|
|
| The following table lists the valid data bit values.
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8 (Default)
|
|
|
| The following table lists the valid stop bit values.
|
|
1 (Default)
|
|
1.5
|
|
2
|
|
|
| Default value: "9600,N,8,1"
|
|
|
| ERR_OK
|
|
|
| The flag set if successful.
|
|
|
| ERR_FAILED
|
|
|
| The flag set if failed.
|
|
|
| ERR_NOTFOUND
|
|
|
| The specified serial device was not found.
|
|
|
| This set of statements opens a camera-link serial device using specified communication attributes and sends a string of characters to it.
|
|
|
| clSerialOpen (0,"19200,N,8,1")
|
| clserialWrite("Serial port test")
|
| clSerialClose()
|