Thursday, January 12, 2017

Core 11. -pi to +pi oscillator

The last example was bound by 1. Now this example is bound by pi. However the lower value is not zero, but -pi.


We create 2 QuickBuses, with a value of pi and 2*pi.


Note that we have added a * module near the Freq input with a value of 2*pi. In the last example the range was 1, thus it was same as multiplication by 1. However now the range is 2*pi, and thus we have to multiply with this value, so the time period is consistent.


We use a Compare module to see if the latch value is above pi. If it is, it will be subtracted by 2*pi to go back to minus pi.


The Core Cell view:


The primary structure view with a scope from -pi to pi over 1 millisecond:


The Panel view:


No comments:

Post a Comment