Counter
This function block is designed to serve as a cumulative counter, allowing for the integration of numerical inputs over time. It can add numbers and reset to zero based on a boolean input.
📥 Inputs
Number
A numerical input that will be added to the cumulative count.
Reset
A boolean input signal that, when true, resets the counter to zero.
📤 Outputs
Number
The current value of the cumulative counter.
🕹️ Controls
Input Size
A dropdown that allows you to specify how many input sockets you want the block to have, ranging from 2 to 20.
Select a Method
A dropdown that presents different methods for mathematical operations (though currently this block primarily focuses on cumulative addition).
🎨 Features
Dynamic Socket Adjustment
Users can dynamically change the number of input sockets depending on their needs.
Integration and Reset Functionality
The counter can accumulate values and reset itself based on input conditions, enabling flexible tracking of numerical values.
📝 Usage Instructions
Set Input Size: Use the "Input Size" dropdown to set how many numbers you wish to input to the counter.
Connect Inputs: Link the relevant sources to the
Number
andReset
inputs.Run the Block: Evaluate the block to see how the cumulative count changes as numbers are fed into it. The output will reflect the total count.
📊 Evaluation
Upon execution, the function block accumulates the values received through its input, providing a continuous output of the total count. The counter resets if the Reset
input is activated.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated