WriteSerial

This block writes data to the serial port

    WriteSerial

Library

Communicate

Parameters

WriteSerial_0

NameLabelDescriptionData TypeValid Values

port

Communication port

Defines the communication port used for serial communication.

String

baudrate

Baud rate

Defines the speed of the communication. It should be match the one on the device.

Scalar

300
1200
2400
4800
9600
19200
38400
57600
115200
230400
460800
921600

packetSize

Packet size

Defines the packet size. If set to -1, it is computed automatically.

Scalar

bytesize

Byte size

Defines the number of data bits in each character.

Scalar

5
6
7
8

stopbit

Stop bits

Defines the number of stop bits sent at the end of every character. This allows the receiving signal hardware to resynchronise with the stream.

Scalar

1
1.5
2

parity

Parity

Defines the parity method used for the communication.

String

'None'
'Odd'
'Even'

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

activation

input

1