VisionBox_RS232ReadNBytes


Reads byte array from RS232 port.

Syntax

C++
Python
 
def VisionBox_RS232ReadNBytes(
	state: VisionBox_State,
	inBytesToRead: int,
	inTimeoutInMs: int,
	/
)
-> (
	outData: list[int],
	outBytesReceived: int
)

Parameters

Name Type Range Default Description
Input will be modified ioState VisionBox_State
Input value inBytesToRead int
Input value inTimeoutInMs int 0 -
Output value outData list[int]
Output value outBytesReceived int

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.