08-19-2010 03:45 PM
Hi There,
I can't save my file with this output method. but it works for other programs. Why is that?
Thanks,
Lei
08-19-2010 04:01 PM
You are traying to save to C:\Data\2010\081810. This folder must exist and the logged in OS user must have the rights to write to this folder.
08-19-2010 04:26 PM
Thanks for the reply.
I have the right and I can save the file in the same folder with other programs.
Lei
08-19-2010 08:42 PM
Are you getting any kind of error message? And if so, what does it say?
08-20-2010 01:39 PM
no error messages..........
08-20-2010 02:03 PM
Have you done any debugging? Try highlight execution, or put some probes on the wires. See if your code is ever getting to the part where the data is supposed to be written out at the Write to Spreadsheet file VI. Maybe your execution is getting blocked in one of the those subVI's. I can't tell because I don't have your subVI's.
08-20-2010 04:03 PM
I found the problem. because it only saves the files when you finish all the loops. If you stopped in the middle, it doesn't work.
Thanks all.
Lei
08-20-2010 05:20 PM - edited 08-20-2010 05:22 PM
How were you stopping your program?
You have a stop button control on your front panel. Wasn't that working?
Please don't tell me you were hitting the Abort button on the toolbar.
Or was it that you have the entire program wrapped in big For Loop, so it ran several more times. You might want to consider using the conditional stop button on that for loop.
08-20-2010 07:14 PM
Hi ravens,
I hit the abort button. Thanks so much for your suggestions.
Have a nice weekend,
Lei
08-20-2010 08:45 PM