The Serial Configuration block configures parameters for a serial port that you can use to send and receive data. You must set the parameters of your serial port before you set up the Serial Receive and the Serial Send block.
You must first specify the configuration of your serial port before you configure the Serial Receive and Serial Send blocks. The Receive and Send blocks will prompt you to add a Configuration block to configure your serial port properties.
Use the Block Parameters dialog box to select your serial port configuration options.
Specify the serial port to configure. You have to select an available port from the list. By default no port is selected and this field displays <Please select a port...>. Use this configured port in your Serial Send and Serial Receive blocks. Each Serial Send and Receive block must have a configured serial configuration. If you use multiple serial ports in your simulation, you must configure each port using a separate serial configuration block.
Specify the rate at which bits are transmitted for the serial interface. Default value is 9600.
Specify the number of data bits to transmit over the serial interface. Default value is 8 and other available values are 5, 6, and 7.
Specify how you want to check parity bits in the data bits transmitted via the serial port. By default this is set to none, and the available values are:
none — Where no parity checking is done.
even — Where parity bit is set to 0 if the number of ones in a given set of bits is even.
odd — Where parity bit is set to 1 if the number of ones in a given set of bits is odd.
mark — Where parity bit is always set to 1.
space — Where parity bit is always set to 0.
Specify the number of bits used to indicate the end of a byte. The number of data bits you select determines the choices available for stop bits. If you select data bits 6, 7, or 8, then the default value is 1 and the other available choice is 2. If you select data bit 5, then the only choice available is 1.5.
Specify the process of managing the rate of data transmission on your serial port. Choose none to have no flow control or hardware to let your hardware determine the flow control.
Specify the amount of time that the model will wait for the data during each simulation time step. The default value is 10 (seconds).