LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

counter get attribute

Hello,
I have a 6602 card and tried to perform a single period measurement with the advanced couter vi's. However the counter counts only when you check, if the counter is armed, in a while loop? And only in the while loop with the "Wait Until Next ms Multiple" function.
Why?


If I check the state only once (without a loop) the counter don't count, but the value of the "counter get attribute.vi" shows that the counter is armed.

Regards Thomas
0 Kudos
Message 1 of 2
(2,637 Views)
When you program the NI-TIO chip to perform a "single period measurement" you must not reset the counter until the counter disarms itself (i.e. when the measurement is finished). So how do you know when the counter has finished taking the measurement? Use a polling loop to call Counter Get Attribute and query the "armed" status.

Or you can save time and just look at the shipping example "Measure Period (NI-TIO).vi".
Message 2 of 2
(2,637 Views)