04-12-2005 04:56 AM
04-12-2005 07:36 AM
02-29-2008 12:46 PM
Hi,
I'm a bit confused as to what the Update Rate is.
If I understand correctly the analog output frequency is given by
f(hertz) = Update Rate/Samples per Period
where Samples per Period = Sampling Rate/frequency
Basically I want a signal to have f = 50, which I'm trying to calculate using Sampling Rate, Update Rate and frequency. However, I don't understand what the update rate is. Is it the same as Sampling Rate. I've been trying to find an answer to this the whole day.
02-29-2008 03:03 PM
<<<Basically I want a signal to have f = 50, which I'm trying to calculate using Sampling Rate, Update Rate and frequency. However, I don't understand what the update rate is. Is it the same as Sampling Rate. I've been trying to find an answer to this the whole day.>>>>
The sampling rate has nothing to do with the update rate. When you generate a periodic signal example a sine wave, you are actually generating a digital sine wave, not an analog signal generated by an oscillator.
You first have to decide how many points you are sending to the buffer. Assume you generate one cycle of a sine wave and send it to the buffer. Then the update rate determines the time between updates. If the update rate is 1000 S/s, then the DT between samples is 1/1000 = 1 ms. If the sine wave generated has consecutive points say of 4.5V, 4.6V, 4.7V, then the generated wave will have 4.5V and it remains constant for 1ms, then it changes to 4.6V and remains constant for 1ms, then changes to 4.7V and remains constant for 1ms, etc…
If you examine the generated wave on an oscilloscope, you will find that it looks like a stair case because it is held constant between updates. If the update rate is increased, the generated wave becomes smoother.
If U= Update_Rate (Samples/s)
L=(# of points per buffer)
The frequency generated is then f(Hz) = U /L
if you have more than one cycle per buffer, say n, then the frequency is
f (Hz) = n* (U/L)
03-01-2008 05:49 AM
03-03-2008 09:44 AM
03-03-2008 01:03 PM
Thank you for identifying that:)
I think that should solve my problem (can't believe I wasted days on this).