LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to continuously write integer at every one houre in csv file with header 20' 40' 45'

Dear All

attached vi is to count no of container moved on ship accordingly to size like 20'/40' or 45'. i want to save its count value on hourly basis in xls or csv file. next day new csv file should be open to record same data.

0 Kudos
Message 1 of 3
(2,524 Views)

So many parallel loops that all do the exact same thing!  You can easily combine all of those into a single loop and eliminate most of your local variables.

 

Use the Elapsed Time function.  It will make your life easier.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,500 Views)

As Tim's said, your code is orders of magnitude too complex because of duplicate code. Please re-think!

 

Your timer loop will not work, because you are trying to save when the "seconds" is 59. This sill be once every minute (not every hour!) and about 10x in a row (if the loop spins with a 100ms period). Yes, the elapsed time express VI will work.

 

I am not sure what you mean by "record same data" I assume you want to record "new data". Should the new data overwrite the old data or should it append to the same file?

 

 

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