Start input not responding when trying to writ to text file

Discuss Thermwood 3-axis Machinery, Controller, and Software.

Moderators: Jason Susnjara, Larry Epplin, Clint Buechlein, Jim Bullis

Post Reply
SoulDiallo
New Member
Posts: 8
Joined: Tue, Jun 26 2007, 3:55PM

Start input not responding when trying to writ to text file

Post by SoulDiallo »

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 »

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.
Post Reply