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 | |
|---|---|---|---|---|---|
![]() |
ioState | VisionBox_State | |||
![]() |
inBytesToRead | int | |||
![]() |
inTimeoutInMs | int | 0 - ![]() |
||
![]() |
outData | list[int] | |||
![]() |
outBytesReceived | int |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.




