01-24-2011 06:17 PM
Suspect that some array or file is open when program is finished running and returns to main menu.
First run of program always works well, subsequent runs fail.
Must restart program completely to run another test.
Have searched for undefined arrays, and unclosed files.
What else should I look for?
How can I reinitialize program without completely restarting the program?
Solved! Go to Solution.
01-24-2011 06:59 PM
Do you open references to anything? Do you start any I/O with devices?
01-24-2011 07:10 PM
You could at least tell us in what way it "fails". (crash, incorrect results, inoperable, etc.). That probably could give some clues.
What does the program do?
Do you have any uninitialzed shift registers or feedback nodes?
Do you have any partially wired output tunnels set to "use default if unwired"?
Do you close anything that needs to be kept open (DAQ task, file, etc.)
01-24-2011 08:17 PM
Details of failure = test runs, but rather than gather 30 data points and end, it gathers one data point then ends.
01-24-2011 09:36 PM
01-25-2011 01:47 AM
Are you using some Control/Indicators to store values? They will be kept in memory.
/Y
01-25-2011 01:51 AM
can you post your code? Or image of portion of the code in which you are facing problem.
01-25-2011 07:58 AM
1 Do you have any uninitialzed shift registers or feedback nodes?
2 Do you have any partially wired output tunnels set to "use default if unwired"?
3 Do you close anything that needs to be kept open (DAQ task, file, etc.)
1 Found one unitialized shift register, was simply a choce between gallons per minute or gallons per hour.
2 Yes I have many of these partially wired output tunnels set to "use default if unwired".
3 I do not beleive that I have anything that needs to be kept open.
01-25-2011 08:07 AM
The control you are using to track the sample count is not being reset* either when the program stops or before it starts to do it work.
Ben
* I admit this is a wild guess based on mostly nothing.
01-25-2011 08:44 AM
I am using the iteration terminal of a WHILE loop to count samples.