You are here: Start » Filter Reference » System » Serial Port » SerialPort_WriteBuffer
Module: | FoundationLite |
---|
Writes raw binary data from a byte buffer to serial port.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inPortId | Integer | 0 - 7 | Identifies open port instance when working with multiple serial ports |
![]() |
inBuffer | ByteBuffer | Buffer containing raw data to write |
Examples
Filter writes raw data block from the inBuffer input to the serial port transmission output buffer.
Data buffer for the inBuffer input can be prepared using filters from the Binary Data category.
Remarks
Using the SerialPort_Config filter is necessary before using the SerialPort_WriteBuffer filter.
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
Using filters writing to serial port without previous configuration will cause "SerialPort not initialized" error.
Complexity Level
This filter is available on Basic Complexity Level.
Filter Group
This filter is member of SerialPort_Write filter group.
See Also
- SerialPort_Config – Configures the serial port.
- SerialPort_WriteByte – Writes one character in binary mode to serial port.
- SerialPort_WriteString – Writes string characters to serial port.
- SerialPort_WriteChar – Write single ASCII character to device.