Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run timed loop at 10MHz using DAQ on board counter?

i want to run timed loop by generation of clock through on board counter of NI DAQ. I connented counter frequecy/ tick generation block as source for clock generation block but it was not running and some error was comming . I need to know how can we run timed loop at MHz using DAQ on board counter?

 

Yours sincerely

0 Kudos
Message 1 of 5
(3,687 Views)

You provide very little useful information.

 

Is this under LabVIEW, LabVIEW real-time, or LabVIEW FPGA?

What is the DAQ hardware?

What kind of code is inside the loop. Can it finish in the loop time you are targeting?

What did the error say? At what point did the error occur (broken run arrow, after pressing the run button, etc.)

 

Can you show us some code?

0 Kudos
Message 2 of 5
(3,666 Views)

I am using 6023E . i can ran time loop at 1KHz at max .i want to run the loop at higher frequency. i used counter as clock sourse for timed loop as in attached fie but was not producing the required results . The pulses ware not generated as they have been with windows clock.

 

 

Yours sincerely

0 Kudos
Message 3 of 5
(3,644 Views)

Hi Ali,

 

it doesn't make sense to try to connect the TWL with some on-board clock sources. The TWL runs on your computer CPU and not on the DAQ board...

 

Then it also doesn't make sense to use the DAQ assistent when you want to have high sample rates. Please go through the tutorials and examples coming with LabVIEW. Also make sure your hardware is capable of solving your task - your other posts imply the opposite...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,638 Views)

DAQmx does support the ability to use signals from hardware to provide a clock source for a timed loop.  Using the DAQmx Create Timing Source is a valid way to do this.  That said, I very strongly doubt that you're going to be able to sustain a 10 MHz loop rate (ie, if you look at the 'Finished Late' output from the timed loop's output node, I suspect that you'll find yourself finishing late continuously.

 

Several other comments.  I agree with GerdW, if you want the best performance for your digital output you're probably going to be best served by using lower level DAQmx VIs than the DAQmx assistant.  Also, I see that you don't have any error handling.  I would add that as perhaps it may explain why your output is not behaving as expected.  What is your end goal here?  I assume it is something other than issuing a 5 MHz pulse train.  If that's what you need to do, you'd be better off using the 6023's counter instead of digital I/O.

 

Hope that helps,

Dan

0 Kudos
Message 5 of 5
(3,624 Views)