LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-TIO timer

Can someone please show me an example of a software triggered timer
using NI-TIO counters? The examples are all hardware gated. When I
configure the group, set the max internal timebase, arm the counter,
and then try to read it 1 msec later, the count is zero. What else do
I need to do and is there a good tutorial on this topic somewhere?

Thanks.

TJW

0 Kudos
Message 1 of 4
(2,404 Views)
TJW,
 
When you say software triggered, do you just mean reading the counter lines at n period of time?  In this case, all you would do is put your counter read inside a timed while loop.  I think you would be better off creating a pulse train with one of your other counters and using it as your clock though. 
 
Regards,
L. Allen
0 Kudos
Message 2 of 4
(2,386 Views)
That's what I tried. I used a simple timer, set the clock to maximum
internal (80MHz on a 6602) and used the counter read. I get no error
but a big 0 for the count (even when I put in a 1 ms delay to make
sure my computer isn't infinitely fast.

On Thu, 25 May 2006 13:10:09 -0500 (CDT), lrallen <x@no.email> wrote:

>TJW,
>&nbsp;
>When you say software triggered, do you just mean reading the counter lines at n period of time?&nbsp; In this case, all you would do is put your counter read inside a timed while loop.&nbsp; I think you would be better off creating a pulse train with one of your other counters and using it as your clock though.&nbsp;
>&nbsp;
>Regards,
>L. Allen
0 Kudos
Message 3 of 4
(2,381 Views)

Are you sure there is not any other HW trigger specified?  What is going on when you highlight execution?  Try to follow the data through the VI and see if you can better determine what may be going on.  If the VI is not too complex, perhaps you could post it and I could take a look at it also. 

Regards,

L. Allen

0 Kudos
Message 4 of 4
(2,373 Views)