Cycle Timer

This function block is used to calculate the time interval (cycle time) between successive activation signals. It helps in monitoring performance and timing for each step in a process.

📥 Inputs

Count A boolean input that, when activated (set to true), starts recording the cycle timings.

📤 Outputs

Delta Time (s) This output provides a list of recorded time intervals (in seconds) between the activation messages.

🕹️ Controls

Step Size A slider that allows you to set the number of most recent time intervals to be considered when calculating differences. The range is from 1 to 30.

🎨 Features

Dynamic Cycle Time Calculation The function block dynamically calculates the time taken between consecutive activation signals.

Configurable Step Size The step size slider allows users to customize how many cycles are remembered and calculated.

📝 Usage Instructions

  1. Connect Count Input: Link a boolean input source that will provide the Count signal to trigger the cycle timer.

  2. Adjust Step Size: Use the Step Size slider to determine how many cycles should be evaluated for timing calculations.

  3. Activate Count: When you provide a true signal to the Count input, the block will start recording the current time.

  4. Evaluate: After sufficient signals are recorded, you will receive a list of time intervals between each subsequent activation.

📊 Evaluation

On execution, this function block outputs a list of time differences, allowing you to analyze the timing of various steps.

💡 Tips and Tricks

Understanding Time Intervals

For consistent and clear results, ensure that the input signal for activation occurs regularly. Variation may affect your analysis.

Monitor Performance

By logging the output intervals, you can analyze the efficiency and performance of your system or process over time.

🛠️ Troubleshooting

No Output Data

If you are not receiving any time intervals in the output, ensure that the Count input is being activated (set to true) at least once.

Unexpected Time Differences

If the outputs seem larger or smaller than expected, check the timing of the input signal activations, or adjust the Step Size slider for more accurate reflection based on your system processes.

Last updated