Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assitant execution time

Solved!
Go to solution

Hello friends. I noticed that adding a DAQ Assistant in a VI previously executing in 60ms inceases the loop time to 1200ms. I'd like to reduce this loop time to some hundreds of miliseconds. Is this time cost just a matter of the VI and DAQ itselves or my PC is also guilty?

 

 Is there any way to reduce this aquisition loop time?

0 Kudos
Message 1 of 8
(3,736 Views)
Hard to tell without knowing how you configured the DAQ Assistant. Using the low level DAQmx functions can be more efficient is a lot of cases but you should really provide some actual infromation. Posting your program would be the best way.
0 Kudos
Message 2 of 8
(3,735 Views)

Thankyou Dennis.

 

 This is the acquisition VI. By the way, I'm using a USB 6008 Module.

0 Kudos
Message 3 of 8
(3,731 Views)
Solution
Accepted by topic author leonardolt

Well, you have set the analog acquisition to a rate of 1000 Samples/sec and are requesting 1000 samples. Simple arithmetic says that will take - 1 second. More simple arithmetic says that if you reduce the number of samples to 500, the acquisition will take 1/2 second.

0 Kudos
Message 4 of 8
(3,721 Views)

 I tried to change de DAQ Assistant to some DAQmx functions. That really reduced the loop time. Now I can run the loop whithout problems in 300ms. The new VI is attached below. Even if this change resulted in a 4x reduction, I'd be really happy if I could run this acquisition cycle in 100ms or less. Is it possible to optimize more?

 

 

Thanks so much

 

 Leonardo

0 Kudos
Message 5 of 8
(3,718 Views)

Oh! You are right Dennis! That was a silly mistake.

 

 Thanks so much

 

 Leonardo

0 Kudos
Message 6 of 8
(3,716 Views)

Your exisiting reduction is a result of you changing from 1000 samples to 1. You could have done the same thing with the DAQ Assistant.

 

You can probably reduce it further by moving the DAQmx Create Channel and a Start/Stop Task in the calling VI. Probably no need to do either every time you call the subVI.

0 Kudos
Message 7 of 8
(3,714 Views)

Great idea, Dennis!

 

I'll do it right now.

0 Kudos
Message 8 of 8
(3,709 Views)