I have the complete code of a working program.
I need two functions to run on startup and one to run every half a second which will write its output to a text file.
![][1]
![][2]
## Deliverables
Attached is a screen shot of the programs main form with 2 views.
1. Show the button which runs the first function that needs to be triggered on startup.
2. Show the place where a double-click will run the 2nd function.
3. Show the output screen that should be continuously written to file, (the contents of the table and the separate text box) every 500 ms.
----------------------------------------------------------
This program controls a coin acceptor unit. I need it to start automatically,detect the attached device, start the device and continually write the output to a file.