Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the highest sampling and update rate of USB NI-6351

Hello,

I have USB NI-6351, and it is stated in the manual that the sampling rate is 1.25 MS/s and the update rate is 2.85 MS/s. For some reason, the while or for loops in the VI that I write are way slower than the sampling rate, and I cannot figure a way to make the loops faster. I need faster loops to be able to use the DAQ to control 9 fans in real time. Is there any way to achieve that?

 

Thanks,

Adnmak

0 Kudos
Message 1 of 3
(1,918 Views)

Well, there's much to unpack.

 

1. Real-time control and USB are a bad combo.

2. For that matter, real-time control and Windows aren't such a great combo either

3. The quoted sample rates are based on an assumption of hardware-timed buffered data acq.  It sounds like you're trying to do 1 sample per iteration and then iterate your loop at MHz rates.

   Buffered data acq gets you higher throughput but will also increase your latency.  Control loops aren't too fond of latency either.

4. It's unlikely your fans have a physical response bandwidth that approaches MHz (or even kHz).

 

Due to USB latency, Windows timing limitations, and physical fan response bandwidth, I'd recommend you start with a goal closer to a 100 Hz control loop.  You stand a chance of accomplishing that with USB and Windows, and such a rate also stands a chance of being "fast enough" to keep the fans in "good enough" control.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 3
(1,897 Views)

For a even number of fans I would had a multicopter in mind... but even than the loop time doesn't need to be 1µs

😄

A 3x3 array of fans for a wind tunnel project?

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 3
(1,886 Views)