This shows you the differences between two versions of the page.
Previous revision | |||
— | resources:tools-software:sigmastudio:toolbox:counters:counter [01 Nov 2012 19:11] (current) – Added GUI description picture Brett Gildersleeve | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Counter====== | ||
+ | |||
+ | [[resources: | ||
+ | \\ | ||
+ | ---------------------------------------------------------------------------------------------------- | ||
+ | |||
+ | {{ counterpic1.png}} | ||
+ | The Counter block can be used with a State Machine to process your input at a particular time interval, in ms. The counter starts from 0 (or any other user-defined value).| | ||
+ | |||
+ | ===Controls (parameters)=== | ||
+ | |Max|This is the maximum value for the counter. The value can be changed by clicking in the text field and typing a new value, or by clicking the adjacent up/down arrows. If the counter reaches the maximum value, its output will stay at that value until it is reset.|{{counterpic2.png}}| | ||
+ | |Start|This switch starts or stops the counter. If the counter is stopped in mid-operation, | ||
+ | |Init|This is the initial value of the counter, which is the starting value for the counter when it is reset. Enter the start count value in the Init field, or use the adjacent up/down arrows.|{{counterpic4.png}}| | ||
+ | |Reset|This button resets the counter back to its initial value, set in the Init field.|{{counterpic5.png}}| | ||
+ | |Step|This controls rate at which the counter increments. The counter value will increase by the value in this field at the end of every audio sample. The value can be changed by entering the desired value in the text field or using the adjacent up/down arrows.|{{counterpic6.png}}| | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ===Counter example:=== | ||
+ | This schematic shows how the Counter (in conjunction with a [[resources/ | ||
+ | \\ | ||
+ | {{counterpic7.png}}\\ | ||
+ | \\ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||