ΣSigmaStudio Ask AI Русский Log in

State machine

SigmaDSP & SigmaStudio Mack Sep 17, 2015 00:00 1 replies Original on forum ↗
Subscribe
Mack Question
Sep 17, 2015 00:00

Hello,

I captured and pasted a state machine example from SigmaStudio Help.

I would like to know what the units circled in red are.

Best Regards,

Mack

5ec06cb454b6facea81f7e03e2524ece.png
5ec06cb454b6facea81f7e03e2524ece.png
5ec06cb454b6facea81f7e03e2524ece.png-620x262.png
5ec06cb454b6facea81f7e03e2524ece.png-620x262.png
KJBob Reply
Sep 18, 2015 00:00

Hello,

The number in each type-in box specifies an integer quantity. The example below shows how each controls the Counter and State Machine blocks:

The counter advances by the Count Step at each sample interval. Here, the Step is set to one, so the count increases by the number of sample intervals that have elapsed since the counter was switched ON. It stops counting when the Max setting is reached. This defaults to 134217727, the largest possible count. The counter's output is a rising integer (28.0 format for most SigmaDSPs), as shown on the upper RealTime Display

The State Machine block compares this integer input at its red pin with its two settings. When the input is between its Greater Than and Less Than settings, it allows the signal at its green input pin through to its blue output pin. We see the on the lower RealTime Display -- the output turns ON when the count reaches the Greater Than setting of 240000, and turns back OFF when the count passes the Less Than setting of 480000.

Best regards,

Bob

e5cb55552ef2148f8e37f0c6a70d0e7c.png
e5cb55552ef2148f8e37f0c6a70d0e7c.png
e5cb55552ef2148f8e37f0c6a70d0e7c.png-620x325.png
e5cb55552ef2148f8e37f0c6a70d0e7c.png-620x325.png