LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Counter Report

Hi forum,

 

first of all thanks for your help i am new in labview and the forum helps me a lot:). 

I am trying to implement an event counter, every time a a value gets from true to false the counter should increase in the end of the data acuisition the counter should be written to file. 

I am using a shift register right now for counting the events, its works fine iam in trubble writing the the event counter to file as soon the application is finished can someone help me please or has a idea?

Thanks and best 
Martincapture.PNG

0 Kudos
Message 1 of 5
(3,129 Views)
What is the screen shot showing that is related to your problem?
What exactly do you want to write to the file? Binary value? ASCII Number?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(3,109 Views)

Hi Martin88,

Please use the state machine architecture as below.

You should have atleast four states; initialise, acquire, log and stop.

When you will press stop, the logging state will execute first ensuring the data is logged and finally the stop state to stop the program.

 

Screen Shot 2014-06-11

HTML tutorial  HTML tutorial
162+ CLDs & 10 CLAs Trained
LabVIEW Training resources
0 Kudos
Message 3 of 5
(3,099 Views)

Hi,

 

sorry about the post. I would like to implement a event counter what i reallized with a shift register it works fine. 


In the end of the recording i would like to write the last value of the counter, what would be a ASCII number, into a txt file. 

The text-file should look like this with two columns:

 

Event_x: counter

 

Event_1: 5

Event_2: 6

Event_3: 1

Event_4: 0

 

thanks 

Martin

0 Kudos
Message 4 of 5
(3,087 Views)

The following code will do exactly what you require.

Screen Shot 2014-06-11 at 16.46.36.png

HTML tutorial  HTML tutorial
162+ CLDs & 10 CLAs Trained
LabVIEW Training resources
0 Kudos
Message 5 of 5
(3,063 Views)