User Tools

Site Tools

한국어

logicpython:cubloc_api:geta

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:geta [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:geta [2026/04/10 04:03] (current) – removed mfranklin
Line 1: Line 1:
-====== GetA ====== 
- 
-Read bytes into a mutable byte array. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import GetA 
- 
-GetA(channel: int, arrayName: bytearray, byteLength: int) 
-</code> 
- 
-===== 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 ===== 
- 
-<code python> 
-from cubloc import GetA 
- 
-# Example usage 
-result = GetA(0, [1, 2, 3], 1) 
-print(result) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:bclr|BClr]] 
-  * [[logicpython:cubloc_api:bfree|BFree]] 
-  * [[logicpython:cubloc_api:blen|BLen]] 
-  * [[logicpython:cubloc_api:checkbf|CheckBf]] 
-  * [[logicpython:cubloc_api:get|Get]] 
  
logicpython/cubloc_api/geta.1775786798.txt.gz · Last modified: by 127.0.0.1