Thanks Marty. That's pretty good food for thought.
One idea I have had about another aspect of the program might dovetail with what you are suggesting. Today, connection to stoker and logging activities are tied together under one button. My thinking was to have a separate action, where on program start up, I would connect to stoker and that would be it. From then on, the log button would simply start/stop the monitoring.
Now, if the stoker stopped responding, you could use a menu option or function key to connect to it again. But logging would not be affected. This way, the fact that you lost connection to stoker and reconnected, would not impact the program timers, etc.
There are some holes in this logic to deal with timers but might make the problem easier to manage.
So what do you all think about changing the program to work like above regardless of timer solution?
Back to your suggestion regarding XML, I think most people use to graph with a spreadsheet program. I know current version of excel can import xml but not sure every program people use, does. What I can do is to create a second log file, this time, with unique session time stamp so the file is unique. I can use XML for this one and have it have the full set of data from stoker. Currently, I truncate the data and only capture it once every 30 seconds so that the file does not get huge. But with separate files, that should not be a problem. With all the data there, then you can do arbitrary analysis later.
So do you want to suggest an XML syntax for me to use? I would normally give you the source code to modify but this thing is such a spaghetti mess that it only makes sense to me right now. And I would be too embarrassed to show it to someone else
. Originally I thought this would be a quick weekend project so I did not pay a lot of attention to properly design its architecture although it is not too bad in this respect. One day I will re-write it properly in C# and then might take you up on helping enhance it.