LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sine pattern and sine wave VI

i would like to give input arguments to Sine pattern VI and Sine wave VI. Input argument amplitude i would like to give in mm and frequency i would like to give in HZ and periods and i also want to give time as an input. Is it possible? and how? please tell me.
Regards
0 Kudos
Message 1 of 3
(4,221 Views)
The amplitude input is without units. For example, if you specify 3, then the sine wave values will be from -3 to 3. If you want mm, there must be some kind of conversion. When you say mm, how does this relate to the sine wave? Are you generating a sine wave voltage signal that drives a motor or other actuator that moves a device by a number of mm? Of so what is the relationship between voltage and the mm displacement generated by your actuator?

Sine Pattern has an input for number of cycles instead of frequency. So you need to figure out how many samples you want in your waveform and how many cycles this should represent. All this depends on the update rate you use for outputing your waveform to the actuator.

For example, if you want to update your
output at 1 kHz, choose to have a 100 sample waveform, and want a 20 Hz sine wave -> 100 samples will represent 0.1 seconds of data (at 1 kHz). So 0.1 seconds of a 20 Hz sine signal will include 2 cycles, so you should specify 2 cycles and 100 sample on the Sine Pattern VI inputs.

The Sine Wave VI frequency input is a bit more complicated as it is a normalized frequency input. Basically, figure out how many cycles you want. Then divide the # of cycles by the number of samples in the waveform you are generating and that is the normalized frequency you should specify. In our previous example, take 2 (# of cycles) and divide by 100 (samples in the waveform we generate). This gives you a normalized frequency of 0.02. This is the input for f (normalized frequency) on Sine Wave VI.

Christian L
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
Message 2 of 3
(4,221 Views)

Dear All,

 

 

I am also would like to know if there were any other method transform noisy and inconsistent data to sine wave like pattern in here.

 

Please advise me since I was in rush.

 

 

 

Thanks and best regards

 

0 Kudos
Message 3 of 3
(3,707 Views)