SoCounter¶
- InventorModule¶
genre
author
package
definition
Purpose¶
The engine SoCounter is a counter that outputs numbers, starting at a minimum value, increasing by a step value, and ending with a number that does not exceed the maximum value. It outputs the next number whenever the Trigger is touched. When the maximum number is reached, it starts counting from the beginning again.
At any time, the counter can be reset to a specific value by setting the reset input field to that value. The next time the counter is triggered, it will start counting from there. Note that the counter will always output numbers based on the Min, Max, and Step values, and setting the Reset value does not affect those input fields.
Each time a counting cycle is started, the Sync Out output is triggered. This output can be used to synchronize other events with the counting cycle.
Windows¶
Default Panel¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
Visible Fields¶
Min¶
- name: min, type: Integer, default: 0¶
Sets the minimum value for the counter.
Max¶
- name: max, type: Integer, default: 1¶
Sets the maximum value for the counter.
Step¶
- name: step, type: Integer, default: 1¶
Sets the counter step value.
Trigger¶
- name: trigger, type: Trigger¶
When pressed, go to the next step.
Reset¶
- name: reset, type: Integer, default: 0¶
At the next trigger, reset the counter to the specified value.
Output¶
- name: output, type: EngineOutput, persistent: no¶
Outputs the current count from
MintoMaxinStepincrements.
This field must be connected to an appropriate Open Inventor field to access or view its value.
Sync Out¶
- name: syncOut, type: EngineOutput, persistent: no¶
Triggers at cycle start.
This field must be connected to an appropriate Open Inventor field to access or view its value.