User Tools

Site Tools

한국어

logicpython:cubloc_api:geta

This is an old revision of the document!


GetA

Read bytes into a mutable byte array.

Syntax

from cubloc import GetA
 
GetA(channel: int, arrayName: bytearray, byteLength: int)

Parameters

  • channel: RS-232 channel number.
  • arrayName: Destination byte array.
  • byteLength: Maximum number of bytes to read.

Return Value

Returns the number of bytes copied into arrayName.

Example

from cubloc import GetA
 
# Example usage
result = GetA(0, [1, 2, 3], 1)
print(result)
logicpython/cubloc_api/geta.1775786798.txt.gz · Last modified: by 127.0.0.1