06-01-2015 03:25 PM
Hello LabView Community.
I am rewriting a program that once worked to operate with new hardware. The program simply:
1. opens a spreadsheet file and prints initial information
2. Takes one sample per second (from several channels) for 60 seconds (inside while loop)
3. finds the average or max value of the 60 for each channel (inside a for loop)
4. Writes processed value into spread sheet file (one value per channel per minute)
The program also does some control tasks (but that is not the problem right now).
My issue is that the program runs well, gets the data and prints it to the spreadsheet file in the propper format. However, it does this only once then stops regardles of the "N" input to the for loop. Then the program shuts down.
This program has worked in the past before significant alterations so the problem is likely something minor. Any help would be greatly appreciated.
06-01-2015 04:04 PM
Don't stop and clear tasks inside your For Loop.
Are you sure the For Loop is supposed to run more than once? Have you put a probe on the orange wire going into the N terminal of the For Loop to see what it says? I don't see anything else that would control how many times the For Loop runs.
06-01-2015 04:27 PM
There are several curious things in this program.
Bob Schor
06-01-2015 06:27 PM
Not sure why, but the program was assuming 1 as the number of iterations. Fixed!
Thanks,
Jo
06-01-2015 06:29 PM
Thank you Bob. Although none of your suggestions woked on what was were causing my problem fixing these things has improved the program.
Jo