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

  1. Connect Reset Input: Optionally connect a boolean input to manage when to reset the block.

  2. Set Rising Time: Enter the desired rising time or sample count in the corresponding field.

  3. Select Mode: Use the switch to choose between 'Seconds' (for timing) or 'Samples' (for count-based).

  4. 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

Understanding Rising Edge

Make sure that the input signal transitions from False to True to see the changes in the output. Consider using a Logic Input block to simulate this behavior.

Using the Reset Function

If the output stays True unexpectedly, check if the reset trigger is being activated inadvertently. Connect the Reset input to a manual switch for better control.

Testing with Different Time Values

Experiment with different rising time values to see how they affect the output. Set lower values if you're testing for quick intervals and verify the responsiveness.

🛠️ Troubleshooting

Output Not Triggering

If the output does not trigger, ensure that the input signal transitions from False to True. Check also that the defined rising time is set properly.

Reset Not Working

If the reset feature seems ineffective, verify that the reset input is connected and is properly sending signals to the block when required.

Last updated