Hello,
I am testing an automated test run. I am logging the output of the serial debug printf viewer. This is the content of the ini file that will work after closing the uvision GUI: g, main slog > test.log
After executing the application, I can see that the log file gets created but it is empty. The only time that the log file will have its content written is when I close the uvison GUI.
However, what I need is a fully automated test that should not require the manual closing of the uvision GUI before the log file gets its content written.
What I did is to edit the ini file and append the EXIT command as shown below: g, main slog > test.log exit
However, this does not work. I can see that the log file gets created but its empty and the contents were not written into it. What seems to be the problem? Adding a sleep or delay before exit does not solve the problem. What can I do, please suggest some possible solution.
Thanks. Ako
I'd assume it leaves the script almost immediately, closing the file with in. Perhaps you can have it wait from some condition flagged by the executing code before leaving?
Thought of contacting support?
I tried it already but still the same, contents not logged into the file. If there could only be a check of task running and delay the exit if there are other running tasks. This could probably solve the issue.
I changed the sequence and this solved the logging issue. Here is my ini file:
slog > test.log G slog off exit
slog > test.log
G
slog off
exit