Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

To generate sine curve using sine pattern.vi

I tried to generate sine wave to provide sine curve to the motor. I used sine pattern.vi and the vi located before the while loop. I could not put it inside 'while loop' to change the amplitude of the sine curve while the program runs. What do I have to make some changes in the program to provide different values in 'sine pattern.vi' while the program runs?
0 Kudos
Message 1 of 3
(3,171 Views)
Take a look at this previous post:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000037950000&ECategory=Motion

It answers a similar question. Hope this helps-
Julie
0 Kudos
Message 2 of 3
(3,171 Views)
Jae,

Looking at your VI, it seems that what you want to do is update the sinewave generated on the fly. Try using the Point by Point functions to generate a sinewave, they will give your the most flexibility. I am attaching an example that generates a sinewave point by point. If you change the value of the frequency control, you will see that the frequency of the waveform will change on the fly.
0 Kudos
Message 3 of 3
(3,171 Views)