ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accumulate count

Hello All

The attached vi is one that I am coding to collect data, sae to a file.....then read the file and add the next lot of incoming data to the stored value and save it agian.

 

What I am having trouble with, and would appreciate some help is this....

 

I would like to have the last value in the row which is a value of the number of times the file save has been done.

 

So...the text file might look like this

 

94.949    126.430    25.074    11.497    182.111    5.682    22.574      4

 

(where four represents the number of times the file has been saved)

 

Could somebody please show me how this might be accomplished?

 

Thank you

Ray

Download All
0 Kudos
Message 1 of 3
(2,728 Views)

What if you would just wire from the 8th position of index array to the 8th position of "built array" and insert a "+1" in that wire?

 

Of course if you want it as integer, you might have to built the string manually before writing to the file. Should not be too hard.

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

Thanks altenbach. The easy solution always seem...well...too easy, but thats just what I did (your suggestion)

 

Regards

Ray

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