LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

counting events for certain intervall then write value to file alternatively calculate mean value events/minute

Hello!
 
I want to continously count the number of events for a certain time intervall  (eg. every  5 minutes) and at the end of this time write the amount to a text file.
 
Can anyone tell me how to do this? Writing to text file is not a problem, but how do I count the events occuring in a certain time intervall?
 
I already tried a while loop with an integrated case structure linked with a shift register and an incrementation always when a event is happening. But how can I reset the value of the counter after time has passed?
 
is this the right approach or do I have to use something different?
 
if what i want to do is not possible, is there a possibility to calculate a mean value - (events/minute) an write this value every x minutes to a file?
 
Thanks a lot in advance !!!
 
tomsee
0 Kudos
Message 1 of 3
(2,595 Views)

In you original code, when the time has elapsed and your case structure code happens, put a fresh timer in the True case and wire it out to a shift register.

 

 



Message Edited by StevenD on 06-06-2008 09:09 AM
0 Kudos
Message 2 of 3
(2,585 Views)

Hello Steven,

Thanks a lot for your inspiration, logging my data with a selectable time intervall isn´t a problem any more!

Greets, Thomas

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