Multifunction DAQ

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 2
(2,700 Views)
The wording of your question is confusing but I will try to answer it.

To input mm as a sinusoid amplitude, you will have to provide a conversion from voltage to mm. I don't know your application so I'm not sure how to do this conversion. What are you measuring in mm?

For a Hz input, you first have to decide on a sampling rate (1/time step). Once you have that then for Sine Pattern, you must decide on a length of time for the signal and the frequency of the signal. For example, you choose 100 samples/s (Hz) sampling rate (0.01 seconds/sample time step), 2 second signal duration at a frequency of 8 cycles/second (Hz). The number of samples would be

(2 seconds) * (100 samples/second) = 200 samples

The number of cycles would be

(8 cycles/second) * (2 seconds) = 16 cycles


For the Sine Wave vi the samples input would be the same as the Sine Pattern vi, as well as amplitude and phase inputs. The f input would be as follows

(8 cycles/second) / (100 samples/seconds) = 0.08 cycles/sample



So write the LabVIEW code to do the above and you can enter you input data as you would like.
Randall Pursley
0 Kudos
Message 2 of 2
(2,686 Views)