02-27-2024 04:29 PM
Hello,
I would like to Control a motor with a sine wave which takes the Parameters as stated in the pictures. I dont know why but i dont get the Sine wave to work right. The torque which is defined by the sine wave will be directed to an analog output later but first i want the sine wave to look as i want it. The sine wave should have a frequency of 1-5 Hz.
I thought i could just build the signal with the given values but the signal is way faster then it should.
Is there something wrong with my samples? I dont get it
Thanks for your help best regards
Solved! Go to Solution.
02-27-2024 04:35 PM
Here is one more picture zoomed in.
Thank you in advance.
02-27-2024 06:36 PM
@Julsbng wrote:
Hello,
I would like to Control a motor with a sine wave which takes the Parameters as stated in the pictures. I dont know why but i dont get the Sine wave to work right. The torque which is defined by the sine wave will be directed to an analog output later but first i want the sine wave to look as i want it. The sine wave should have a frequency of 1-5 Hz.
I thought i could just build the signal with the given values but the signal is way faster then it should.
Is there something wrong with my samples? I dont get it
Thanks for your help best regards
So, don't use express VIs. Instead write the code. In this example the loop is software timed in an actual system you can make it hardware timed and do much less math in the loop. But this one is fun to play with and demonstrates how to generate a Sine signal in "real time".
02-27-2024 07:50 PM
Also here is a way to make Sine waveforms without using the Express VI.
02-28-2024 07:26 AM
I found another way too which is working perfectly for me. Thanks for the hint helped alot