06-16-2008 08:46 AM
I know this is probably possible, I just don't know how to
best go about doing it. I would like to write a program to sample a waveform
off of AI0 and output that same waveform on AO0 real time (or as close to real
time as I can get) - with the eventual goal of doing some processing on that
waveform in between. But for right now all I am trying to do is create a
program to do AI to AO.
The examples I have seen for doing simultaneous AI/AO have the output fixed
while it samples data on the input. That is not what I want. I want to be able
to spit out the signal that is present on the input ADC. Also when I try to
modify the program, I get these long (5+ second) delays in between what is
present on the input and what it produces on the output. I have tried
increasing the sample rate and/or reducing the number of samples but that just
causes errors – I’m loosing data because one process is taking too long to
complete.
Is there a way to make a streamlined program to simulate an analog buffer?
Details:
NI Device: USB 6251
Software: Labview 8.5
Preferred Sample Rate: 40 kHz
Preferred delay AI to AO: < 0.1 second
I have no code started that I could post. I am wondering if anybody has done this or has an idea about how to do it, i.e. I need to use a queue to buffer data from the AI chain to the AO chain.
Thanks
Jim06-16-2008 09:43 AM - edited 06-16-2008 09:43 AM
06-17-2008 01:19 PM - edited 06-17-2008 01:20 PM
06-17-2008 01:44 PM
06-17-2008 03:48 PM
06-18-2008 03:52 PM