10-18-2017 05:41 AM
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.
10-18-2017 06:37 AM
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.
10-18-2017 10:24 AM
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?