Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Serial Port » SerialPort_Write_Deprecated

SerialPort_Write_Deprecated


Writes array of characters in binary mode to serial port.

Name Type Description
inData IntegerArray Array of character values, each in the range from 0 to 255.

Description

This filter is deprecated. Use SerialPort_ReadBuffer instead.

Filter writes inData to output buffer. All values in inData must be between 0 and 255.

Remarks

Using the SerialPort_Config filter is necessary before using the SerialPort_Write_Deprecated 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.

List of possible exceptions:

Error type Description
DomainError Incorrect inData element value in SerialPort_Write, character values must be in range from 0 to 255
All input data elements must be provided as a single 8bit byte. Value of all elements must be in the range [0, 255]

Complexity Level

This filter is available on Basic Complexity Level.

Filter Group

This filter is member of SerialPort_Write filter group.

See Also