Comment on page
Counter
This block allows you to counter objects or datas.
It has 2 inputs.
Number: Connect a True signal or number.
Reset: Connect a Logic Input.
Use Edge Rising function block before Number input socket. Otherwise, block is counting continuously while the program running.

In this example, we are performing the counter block with logic Input block. You can see how it works by switching the logic input block from true to false with the mouse while pressing the F5 key.
The
Counter
node in AugeLab Studio allows you to cumulate values and reset the counter using a boolean input.The
Counter
node cumulates numeric values and provides an output that represents the cumulative sum. It also has a boolean input that allows you to reset the counter.- 1.Drag and drop the
Counter
node from the node library onto the canvas in AugeLab Studio. - 2.Connect a numeric value to the "Number" input socket.
- 3.Connect a boolean value to the "Reset" input socket (optional).
- 4.The counter will cumulate the numeric values and provide the cumulative sum as output.
- 5.To reset the counter, provide a boolean value of
True
to the "Reset" input socket. - 6.Run the pipeline or execute the node to perform the cumulation and reset.
- 7.Retrieve the cumulative sum from the output socket.
The
Counter
node cumulates numeric values and provides the cumulative sum as output. It uses an integration variable to store the cumulative sum and updates it based on the input values. If a boolean reset signal is provided, the integration variable is reset to zero.During its implementation, the node performs the following steps:
- 1.Cumulation:
- The node receives a numeric value from the "Number" input socket.
- The value is added to the integration variable, representing the cumulative sum.
- The integration variable is updated with the cumulative sum.
- 2.Reset:
- The node receives a boolean value from the "Reset" input socket (optional).
- If the boolean value is
True
, the integration variable is reset to zero.
- 3.Output:
- The cumulative sum is output through the output socket.
- 1.Drag and drop the
Counter
node from the node library onto the canvas in AugeLab Studio. - 2.Connect a numeric value to the "Number" input socket.
- 3.Connect a boolean value to the "Reset" input socket (optional).
- 4.The counter will cumulate the numeric values and provide the cumulative sum as output.
- 5.To reset the counter, provide a boolean value of
True
to the "Reset" input socket. - 6.Run the pipeline or execute the node to perform the cumulation and reset.
- 7.Retrieve the cumulative sum from the output socket.
- 8.Use the cumulative sum in downstream nodes or export it for further processing.
- The
Counter
node allows you to cumulate numeric values and provides the cumulative sum as output. - It uses an integration variable to store the cumulative sum and updates it based on the input values.
- The integration variable represents the cumulative sum and is updated with each input value.
- You can connect multiple numeric values to the "Number" input socket to cumulate them.
- The
Counter
node also has an optional boolean input socket for resetting the counter. - To reset the counter, provide a boolean value of
True
to the "Reset" input socket. - The cumulative sum is output through the output socket for further use in the pipeline.
- The
Counter
node is useful when you need to cumulate values and keep track of the cumulative sum.