LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

count occurences

Hello,

I want to save a occurence of a bit.
For example:
A Bit is switch from 0 to 1 increment a from 0 to 1 and write 1 to a file
if the bit turns back to 0 and comes up to 1 again, add 1 to value within the file. The result should be 2 and so on.

The reason is I want to genertate automatically Key names within a configuration file, dependent on the Bit event.

e.g.

[MyMeas]

Mea_0 = 1;2,5;40;35;23....
Mea_1 =
Mea_3 =

[SumMeas]
Sum =

Can anybody help me?

Thanks

Thomas
Thomas
0 Kudos
Message 1 of 3
(2,049 Views)
Try this, don't forget to create a file (in my case in c:\temp\count.txt) before running.

Hope it helps,
Paulo
0 Kudos
Message 2 of 3
(2,041 Views)
Yes! You did it!

Thank you very much

Thomas
Thomas
0 Kudos
Message 3 of 3
(2,036 Views)