Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to reduce delay time ?

I was using an NI-6251 USB to capture a signal regenerated from the Signal Simulation toolbox. The generated signal was sent out at AO 0. The signal was then captured using AI 0. These two signals were plotted against each other as shown in the figure. I found delay between these signals of about 20 ms. I need to reduce the delay to be less than 500 usec. Please you could show me how to deal with this problem, please?

capture-20150707-151442.png

0 Kudos
Message 1 of 5
(4,779 Views)

Since all of the important information is hidden inside of those express VIs, that image is next to useless.  You need to post your VI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(4,757 Views)

Here is my VI

 

thank

0 Kudos
Message 3 of 5
(4,739 Views)

The more I think about this problem, the more convinced I am that you really need to abandon the DAQ Assistant.  I think it is adding overhead that is causing your issue.

 

If you look at the DAQmx palette, you will find all kinds of VIs that you will want to use.  In this case, you will want the Create Virtual Channel to set up your channels, DAQmx Timing to set up your sample clocks, and DAQmx Start Task to tell your tasks to start running.  These functions should be done before your main loop.  You will also want to set the sample clock of your analog output to be the sample clock for the Analog Input.  This will help keep them in synch.  Now inside of your loop, you use the DAQmx Write to write to your analog output and DAQmx Read to read the data captured by your analog input.  After your loop, use DAQmx Stop Task and DAQmx Clear Task to stop and clean up your tasks.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(4,720 Views)

is that right?

 

 

 

 

capture-20150708-144401.pngcapture-20150708-144425.png

0 Kudos
Message 5 of 5
(4,685 Views)