Rising Edge
This function block generates a boolean rising-edge signal after a configured delay. It can operate either in time-based mode (seconds) or in sample-based mode (number of iterations). Use the Reset input to restart the timing/counting and clear the triggered state.
π₯ Inputs
Reset Provide a boolean signal to reset the block's internal timer/counter and clear the triggered state.
(Shown as a socket under inputs)
π€ Outputs
Boolean A boolean output that becomes TRUE when the configured delay/count is reached and remains TRUE until a reset is provided.
(Shown as a socket under outputs)
πΉοΈ Controls
Rising Time (s | #) Set the delay amount. Interpreted as seconds when mode is Seconds and as number of samples when mode is Samples.
Mode Toggle between Seconds and Samples operation. The control shows Seconds when time-based and Samples when sample-based.
βοΈ How it works
On first activation the block starts counting automatically.
In
Secondsmode the block measures real elapsed time and switches the output to TRUE once the elapsed time reaches the value set inRising Time (s | #).In
Samplesmode the block counts each evaluation cycle and switches the output to TRUE once the configured sample count is reached.After the output becomes TRUE it stays TRUE until a TRUE is supplied to the
Resetinput, which restarts the internal timer/counter and returns the output to FALSE.
π Usage Instructions
Choose operation mode with the
Modecontrol (SecondsorSamples).Enter the desired delay/count into
Rising Time (s | #).Supply a TRUE signal to
Resetwhenever you need to restart the delay/count.Use the block's boolean output as a trigger for downstream blocks when the delay/count completes.
β¨ Features
Simple time- or sample-based trigger generation.
Persistent triggered state until explicit reset, making it suitable as a latch for one-shot events.
Compact interface with an editable numeric field and a clear mode switch.
π‘ Tips and Tricks
To capture an image after a short delay, use this block with
Camera USBand then connect its output toImage LoggerorImage Writeto save the captured frame when the rising edge becomes TRUE.Start and stop video recordings by linking the output to
Record Video(use the rising edge to start and a separate logic sequence to stop).Use
Delay Steptogether with this block to create delayed pulses or to shape the trigger timing in multi-step flows.Combine with
Logic Inputto provide a manual reset or timed start conditions.Visualize the trigger activity by routing the boolean to
Scopeor log events withCSV Exportfor long-term monitoring.Use
Counterdownstream to count how many times the rising edge has been reached in a run.
π οΈ Troubleshooting
If the output never becomes TRUE, verify the
Modesetting and confirm the value inRising Time (s | #)is appropriate (not set too large).If the output immediately stays TRUE, check whether a reset is being held active or whether the configured time/count is zero or very small.
For timing issues, ensure the system running the flow is not paused or blocked, since sample-based counting depends on evaluation cycles while time-based counting depends on real elapsed time.
Last updated
Was this helpful?