LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Sine Wave Motor Control/Generate Sine Signal

Solved!
Go to solution

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.

 

test.png

test2.png

test.png

Simulate.png

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

 

 

0 Kudos
Message 1 of 5
(1,134 Views)

Here is one more picture zoomed in. 

Julsbng_0-1709073336528.png

Thank you in advance.

 

0 Kudos
Message 2 of 5
(1,130 Views)
Solution
Accepted by topic author Julsbng

@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.

 

test.png

test2.png

test.png

Simulate.png

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". 

 

snip.png

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
Message 3 of 5
(1,103 Views)
Solution
Accepted by topic author Julsbng

Also here is a way to make Sine waveforms without using the Express VI. 

2snip.png

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 4 of 5
(1,078 Views)

I found another way too which is working perfectly for me. Thanks for the hint helped alot

Message 5 of 5
(1,058 Views)