Discuss Thermwood 3-axis Machinery, Controller, and Software.
Moderators: Mike Iubelt , Jason Susnjara , Larry Epplin , Clint Buechlein , Mike Iubelt , Jason Susnjara , Larry Epplin , Clint Buechlein
SoulDiallo
New Member
Posts: 8 Joined: Tue, Jun 26 2007, 3:55PM
Post
by SoulDiallo » Mon, Aug 06 2007, 8:54AM
I have added the following to my program and the start input stopped reacting. It needs to be pressed a few time before reacting.
[OPEN \"LOGFILE\" FOR APPEND AS #1]
[PRINT #1,DATE$;]
[PRINT #1,TIME$;]
[PRINT #1,PROGRAM$]
[CLOSE #1]
The program can be started when pressing Function keystrokes.
When I remove these lines of the program everything gets back to normal.
Any suggestion about how to log to text file during program execution without generating this problem?
Thanks
Ryan Hochgesang
Post
by Ryan Hochgesang » Mon, Aug 06 2007, 10:56AM
When choosing to open a file for append you will need to supply a data path, then when finished, you will need to close txt file to allow control to continue through program on screen.
Ex:
[OPEN \"D:\\directory \\directory \\directory \\filename\" FOR OUTPUT AS #1]
[PRINT #1,\"TEST\"]
[CLOSE #1]
I hope this information has been helpful.