User Tools

Site Tools

한국어

logicpython:cubloc_api:stepstat

This is an old revision of the document!


StepStat

Return how many pulses have been generated by the most recent StepPulse or StepAccel command on the channel.

Syntax

from cubloc import StepStat
 
StepStat(pin: int)

Parameters

  • pin: Pin number on which pulse train was started with StepPulse or StepAcce.

Return Value

Return how many pulses have been generated by the most recent StepPulse or StepAccel command on the pin.

Exceptions

Example

from cubloc import StepStat
 
StepPulse(15, 2000, 5000)
result = StepStat(15)
print(result)
 
while True:
    pass
logicpython/cubloc_api/stepstat.1776835420.txt.gz · Last modified: by mfranklin