LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with generate sine 50 Hz

I have a problem with generate sine voltage with freq 50 Hz.
I form waveform with this frequency and sent in to the "AO Write" with update rate equal waveform lenght*frequency. And so I have a cycle of my program 20 ms, but I need a cylce 5 ms.
How I can make it right?
 
I forming my waveform "Basic Function Generator" with sampling Info equal my waveform lenght.

Message Edited by Unk on 09-28-2005 02:36 PM

0 Kudos
Message 1 of 5
(2,349 Views)
A 50 Hz waveform will have a 20 ms period (1/50 = .020).  If you really need a waveform with a 5 ms cycle, you want a 200 Hz waveform.
0 Kudos
Message 2 of 5
(2,333 Views)
eaolson
I understand it. But I need that my program cycle be a 2 ms for correct amplitude and phase of this sine.
I think that it possible, but I don't know how.
0 Kudos
Message 3 of 5
(2,317 Views)
The
 
amplitude
phase
frequency
 
of the signal are independent parameters.
 
You can generate the relevant signal using Basic Function Generator VI, then supply this waveform to your AO operation (DAQmx write is polymorphic and allows you to use a waveform directly as the input - those guys at NI are clever 😉 )
0 Kudos
Message 4 of 5
(2,312 Views)
It sounds like you are creating the waveform and trying to output less than the whole thing for each cycle of your loop.  How are you generating the output?  You could send less than the entire waveform to AO Write, and just call it several times.

0 Kudos
Message 5 of 5
(2,303 Views)