From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-28-2008 01:10 PM
02-28-2008 02:22 PM
02-29-2008 12:00 AM
Thank you for the reply Dennis.
The reason why I used the Get Waveform Components was so that I can use the two waveforms to obtain a complex waveform. That was the only method I could think of actually forming the exp(i*w*t). Someone else suggested wiring sampling info into my Sine Waveform VIs to input the sampling rate into the waveforms. Do you reckon that will fix the problem?
I've attached a screen shot of my modified block diagram. Is this what you meant by your earlier post?
Cheers.
Ruf.
02-29-2008 08:30 AM - edited 02-29-2008 08:31 AM
No.
You don't understand how the get/build waveform functions work at all. There are three components, y, dt, and t0. When you used the generate sine function, the waveform output had a dt. this defines the frequency. You get the Y array but do not get the dt. When you use the build waveform, instead of using the dt from the original waveform, you create a new waveform with a default dt value of 1.
02-29-2008 01:38 PM
Cheers for the help Dennis.
Sorry for being a complete idiot, you were right I didn't know anything about them, I was just trying out things and thought it gave me the waveform I needed. Well I've done as you suggested now. I've got a few questions about the VI which I've been trying to find out the whole day and haven't got anywhere yet :(.
It's very basic, I just want to know what the frequency of my analog output is. The formula which I've seen on NI Help is,
Output Frequency = [Update Rate × Frequency] / Sampling Frequency
I entered 50 Hz into the Frequency of the Sine Waveform VI, but I know that this is not that analog output frequency because this frequency varies depending on the sampling rate and the number of samples. So my question is, what is the actual analog frequency that goes to the loudspeakers if I specify particular sampling rate etc.
I've tried to use the above formula, but I'm not sure how I'd calculate the Update Rate, as to me it seems to be related to the Sampling Rate and the Output Frequency (from what I've found out on here). I would have thought that there was a simple answer some where.