05-09-2005 12:01 PM - edited 05-09-2005 12:01 PM
Message Edited by Branislav on 05-09-2005 12:02 PM
05-10-2005 02:40 PM
@Branislav wrote:
Hi, I have been working on a project here at
Vtech. We
have been given a LabWindows/CVI code for DAQ card which implements the
double
buffer. We have implemented this code with our existing program, but there
is
one issue that needs to be resolved. For example, when we run our program
it
generates sine waves of different frequencies, which are then outputed to
the
channel using the double buffer. If the program is run again the
frequencies
are normally generated to the channel with one exception however - the last
frequency from the previous run remains in the channel and is outputted
together with the frequencies of the current run. Is there a way to clear
the
channel after each run, so that when the program is run the next time, no
signal from the previous run remains in the channel?
Thanks for your help.
Branislav.
ps. I have attached the original code for the double buffer provided to us
and
the modified double buffer code that was merged with our program. One
notable
difference with the modified code is that the loop that recreated buffers
was
omitted [(while ((stopao1 == 0) && (iStatus == 0))]. Instead, the whole
start1
function (renamed to DoubleBuffer) is called within a loop from another
file,
which provides parameters such as amplitude, phase, frequency and so on.Message Edited by Branislav on 05-09-2005 12:02 PM