LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues running more than 4 counters !

Solved!
Go to solution

Hello all

 

In my application i need to measure 6 signals simultenasly (pulse width measurment).

i have two 6363 boards , each has 4 counters. i used 4 counters from board A and another 2 from board B.

 

i created six independently loops, each runs a counter task, and i created enable\disable button for each loop
so i can test things out.

 

to simplify things out, i connected a 16 hz square signal to counter 1 only.

 

now, when i run the program with 4 counters enabled (this can be any combination of counters, for example two counters from board A and two counters from board B)   -   all works fine:
loop 1 runs 16 times per sec, as expected, and the other loops wait because nothing is connected to the counter inputs.

 

when i enable more than 4 counters (5 or 6 ), loop1 slows its iteration rate dramatically to 1 or 2 times per sec.

 

can you help me figure out this behaviour? (VI Attached)

 

thanks.

guy

 

0 Kudos
Message 1 of 3
(2,200 Views)

It will surely help to reduce the loop iteration rates of your DAQ loops with the help of some wait statements. Or do you need to read counter values as often as you can?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,177 Views)
Solution
Accepted by topic author hookso

I have managed to solve the problem with the help of this post:

http://www.ni.com/example/31081/en/

 

thanks

0 Kudos
Message 3 of 3
(2,167 Views)