User Tools

Site Tools

한국어

logicpython:cubloc_api:count

This is an old revision of the document!


Count

Return the current pulse count for the specified counter channel.

Syntax

from cubloc import Count
 
Count(channel: int)

Parameters

  • channel: Counter channel number (0 to 4).

Return Value

Return the current pulse count for the specified counter channel.

Exceptions

Notes

  • Note: Read often enough that the 16-bit hardware counter cannot wrap more than once between reads.

Example

from cubloc import Count
 
# Example usage
result = Count(0)
print(result)
logicpython/cubloc_api/count.1775786798.txt.gz · Last modified: by 127.0.0.1