LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have question for DAQmx counter pulse.

Hello.

 

I have some trouble with counter pulse .

 

I want to generating pulse as while loop speed.

 

But Pcie-NI 6353 doesn't have option that regenerationg=ture.

 

So I have question for you. 

 

 

In while loop,there are initialization and task start , task stop. It does work. but loop repetition speed is lower.

0 Kudos
Message 1 of 4
(355 Views)

Hi yeers,

 


@yeers wrote:

In while loop,there are initialization and task start , task stop. It does work. but loop repetition speed is lower.


The upper loop effectively blocks the dataflow so the DAQmx task will NEVER stop.

 

The lower loop is set to a different number of samples. Additionally I would only leave the Start/Stop inside the loop and maybe add a WaitUntilDone…

 

What exactly do you want to create?

 

Best regards,
GerdW


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

I want exatually pulse generator as loop speed with very fast speed.

 

but upper loop, It doesn't make sence. it did not make pulse. but speed is 1khz

 

as lower loop, It work as pulse generation. but speed is 250 hz

0 Kudos
Message 3 of 4
(295 Views)

Hi yeers,

 


@yeers wrote:

but upper loop, It doesn't make sence. it did not make pulse. but speed is 1khz


Yes, it doesn't make sense - as explained before.

How did you measure those "speed is 1kHz"? (Did you know speed is measured in in "length/time"? In your context you should talk about iteration rates aka frequency.)

 


@yeers wrote:

as lower loop, It work as pulse generation. but speed is 250 hz


Yes, as explained before.

Did you read my previous message - and do you understand its content?

 


@yeers wrote:

I want exatually pulse generator as loop speed with very fast speed.


Why should the pulse generator be coupled to the loop iteration rate???

Why don't you offload the pulse generation to your DAQ board as that would handle any timing much more precise than your VI running in a Windows context???

 

As I wrote in your other thread:

"What" is your goal? Don't focus on "how" to reach that goal…

Best regards,
GerdW


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