Skip to main content

pin.getdelay()

Returns the specified PTPG output pin’s current delay value

Availability

Device

Returns

Float — the PTPG delay in seconds

Description

This method provides the current duration in seconds that a Pin-Triggered Pulse Generator output pin has been set to pause between being triggered and starting to count pulses.

The returned value can vary slightly from the value supplied to pin.configure() or pin.write(), due to hardware limitations. Typically, the returned value has been rounded to a whole number of clock cycles.

A Squirrel runtime error occurs if this call is made to a pin that is not currently configured in PTPG mode.