03-10-2009 11:01 AM
Solved! Go to Solution.
03-10-2009 01:57 PM
Hi,
When you generate the waveform with the vi, it is already a discrete and non-periodic signal.
It is a discrete signal because the function is not defined for all time, but only at the multiple of your sampling period, i.e. you only have data point at the sampling period intervals. If you have a sampling rate of 0.1ms with initial time =0, you would have a point at 0, at 0.1ms, at 0.2ms, at 0.3ms, etc, and you will not have any data point at 0.05ms, 0.25ms, etc.
It is a non-periodic signal, because at any given time, you would only have a waveform from a particular time instance to another particular time instance, and you will never have a waveform form from -inf to +inf, which is part of the definition of being periodic. Let me know if this is clear or not.
Yik
03-10-2009 02:11 PM
Hi Yik,
Thanks for your prompt reply. I understand your explanation. However, if i were to apply select a waveform from the vi, whether it's sine wave, sawtooth wave etc, what I would see is still a continuous signal. I had linked the output of the vi directly to the graph, do I need to apply something else so that what I see are discrete values as what you had described earlier?
As for the non-periodic signal I got my queries again. By default the waveform will start at 0 and ends at +inf unless i select true for reset signal for the vi, or change the x-axis scale to display the range which I want. Is there any other methods?
Will adding another vi help me with this, because I only want to see the impulses for a given time range.
-Gareth
03-11-2009 04:36 PM
Hi Gareth,
The output of that VI is a waveform, which is a cluster with initial time (to), sampling period (dt), and a 1d array for the y-values. To extract the 1d array of values, you can go to waveform -> get wfm comp and use that function.
You can use waveform -> build wfm to change the to, dt, and 1d array. For the 1d array, you just need to do some array manipilation to get your range correctly and feed the new array into the build wfm function.
03-12-2009 12:17 AM
Hi Yik,
thanks a lot. It works as what I wanted.