This shows you the differences between two versions of the page.
| logicpython:cubloc_api:count [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:count [2026/04/10 02:58] (current) – removed mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Count ====== | ||
| - | |||
| - | Return the current pulse count for the specified counter '' | ||
| - | |||
| - | ===== Syntax ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import Count | ||
| - | |||
| - | Count(channel: | ||
| - | </ | ||
| - | |||
| - | ===== Parameters ===== | ||
| - | |||
| - | * **channel**: | ||
| - | |||
| - | ===== Return Value ===== | ||
| - | |||
| - | Return the current pulse count for the specified counter '' | ||
| - | |||
| - | ===== Exceptions ===== | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | ===== Notes ===== | ||
| - | |||
| - | * Note: Read often enough that the 16-bit hardware counter cannot wrap more than once between reads. | ||
| - | |||
| - | ===== Example ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import Count | ||
| - | |||
| - | # Example usage | ||
| - | result = Count(0) | ||
| - | print(result) | ||
| - | </ | ||
| - | |||
| - | ===== Related APIs ===== | ||
| - | |||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||