09-25-2008 01:30 PM
09-26-2008 08:21 AM
There is not a direct modulo function, but you can construct just about anything you want with the Formula step. For example, to look at an offset sine wave (0 - 1 volt range) modulo 0.5, you can use
( ( x0 / 0.5) - floor( x0 / 0.5) )*0.5
There is probably a more efficient formula for doing this, but this gives you the idea.
09-26-2008 01:04 PM
I figured there was a way but it wasn't coming to me. Your example led me to this:
(phase2-phase1) - (floor((phase2-phase1)/360)*360)
This keeps the result between 0 and 360.
Thanks!