LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i m using 1 counter so how timer overflow can be avoided?

for my application to measure the time duration using hardware counter, i m using 6602 -32bit 8counter card.

 

i have to use only 1 counter to measure the time duration, but with 32bit counter i can count 216ms time duration, after that overflow will be started. with second counter i can avoid it easily, but i dont have to use 2 counter so, how programtically i can do that........

 

 

Kidnly guide me on that...

 

waiting for ur reply.

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 1 of 5
(2,296 Views)

Hi Prashant,

 

when you don't want to use a second (HW) counter you should count the overflows in software...

Best regards,
GerdW


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

but it is the requirement bcoz other counter is already engaged so i don't have any unused counter .......i want to use some software logic to avoid overflow.

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 3 of 5
(2,265 Views)

so how i can do it with software.....if have any sample VI...than please share

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 4 of 5
(2,264 Views)

Hi Prashant,

 

"if have any sample VI"

No, don't have.

 

but:

- IF "overflow occured" THEN count++

- "overflow occured" when actual count < previous count (assuming you always count up)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(2,259 Views)