Rising Edge
This function block is designed to output a rising edge signal either over a specified time period or based on a defined number of samples. An optional reset input can be used to reset its state at any time.
📥 Inputs
Reset
A boolean input that, when activated, resets the block to its initial state.
📤 Outputs
This function block outputs a boolean signal.
🕹️ Controls
Rising Time (s | #)
A labeled input field where users can specify the duration in seconds or number of samples for the rising edge detection.
Mode
A switch to toggle between "Seconds" for time-based mode or "Samples" for sample count mode.
🎨 Features
Dynamic Edge Detection
This block can detect rising edges either over time or based on a specified count of samples, providing flexibility depending on the user's requirements.
Reset Functionality
Users can easily reset the block to clear its state using the reset input.
📝 Usage Instructions
Connect Reset Input: Optionally connect a boolean input to manage when to reset the block.
Set Rising Time: Enter the desired rising time or sample count in the corresponding field.
Select Mode: Use the switch to choose between 'Seconds' (for timing) or 'Samples' (for count-based).
Evaluate: Run the block to produce the rising edge output based on the configured settings.
📊 Evaluation
When active, this function block monitors the input conditions and provides a True
output signal when a rising edge is detected, either by time elapsed or by sampled input state.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated