Fred.Amoson
New Member
I'm writing a program that outputs a sine wave to DAC. I'm trying to add a function that allows me to set at what frequency the loop that makes the sine wave runs at, so I can set the frequency. In testing, I simply added a Nop() command to the loop. On my first attempt, it reduced the frequency by .6 Hz, when I added another one it reduced it another .6 Hz. It is now at 203.1 Hz. I added another and it went to 204.6 Hz! It actually sped up.
Can someone explain that one to me. Do I need to turn off some sort of code enhancing or something to get the timing function to work right?
Thanks!
Can someone explain that one to me. Do I need to turn off some sort of code enhancing or something to get the timing function to work right?
Thanks!