The SerialPort steps allows your runtime platform to exchange information with external devices, such as motion or light controllers, that are connected via a serial port.
The SerialPortSetup step is used to set the data transfer speed and communication options (data bits, parity, and stop bits) for your runtime platform. This step must be configured before using the SerialPortReader step or the SerialPortWriter step and is usually before the main loop.
The SerialPortWriter step writes to the serial port of your runtime platform and allows you to receive an acknowledgment string from an external device that confirms the write was received.
The SerialPortReader step reads from the serial port of your runtime platform and returns all the characters found in the input buffer. The length of the read is dependent on a user-defined termination condition; you can set the number of characters to be read or specify a text which, when read, will terminate the current read.
For a diagram illustrating data flow for camera, triggered, and I/O operations, see the Acquisition overview section in Chapter 28: Acquisition.