From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resetting counter

I am using the attached vi to perform buffered photon counting using my PCI-6602 card.  The problem is that the counter continues to increment during each iteration of the while loop.  I want the counter to restart from 0 after acquiring the array of 256 elements.  How would I go about modifying the vi to perform this task?
 
Thanks,
Anthony
0 Kudos
Message 1 of 6
(2,901 Views)
the vi is in Lv 8... attach it VI again after converting into 7 version,,, so can get better idea,,,
 
 
regards
manisha
0 Kudos
Message 2 of 6
(2,892 Views)

hi, not able to view LV8 code... but is this what you wanna do?

attached (LV7)

regards,

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 6
(2,885 Views)

nice code ian fung,,, but put some time delay in while loop so the increment in count can be observe....

attaching one more,,  idea,,

manisha

 

 

0 Kudos
Message 4 of 6
(2,881 Views)
Sorry, I only have LV8.  I have taken a screenshot of my block diagram so you can see what's going on.  This vi was a modification of the example vi "Count Digital Events-Buffered-Continuous-Ext Clk.vi".   Very interesting vis you have posted, butI don't think they are what I'm looking for.
 
-Anthony

Message Edited by AntLee29 on 05-26-2006 03:11 AM

Message Edited by AntLee29 on 05-26-2006 03:12 AM

0 Kudos
Message 5 of 6
(2,880 Views)

hi,

I noticed that, and purposely removed it to realise that actual execution time.

If the final count & no. of count are of interest, even 1ms matters 🙂 if this is to be for production test sw.

Thanks & Cheers!

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 6
(2,870 Views)