This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| logicpython:cubloc_api:stepstat [2026/04/22 05:32] – [Example] mfranklin | logicpython:cubloc_api:stepstat [2026/04/22 05:33] (current) – [Example] mfranklin | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| <code python> | <code python> | ||
| + | from time import sleep_ms | ||
| from cubloc import StepStat | from cubloc import StepStat | ||
| # Start the pulse train | # Start the pulse train | ||
| StepPulse(15, | StepPulse(15, | ||
| - | |||
| - | # Print the number of pulses generated so far | ||
| - | result = StepStat(15) | ||
| - | print(result) | ||
| while True: | while True: | ||
| - | | + | |
| + | |||
| + | # Print the number of pulses generated so far | ||
| + | result = StepStat(15) | ||
| + | print(result) | ||
| </ | </ | ||