06-08-2007 09:00 AM
If anyone can help me towards converting this program into state-machine style.
This existing program is reading mA signals for (torque and
Can I convert this into state-machine? How it going to work? Do I need a button to switch between the states? For example when I need to start getting data (Acquisition ) , and its upto me whenever I want I can start logging and can stop the program , clear it and then exit from the program .
I have possible states in my mind , like ; initializing , start, logging , report, stop, exit , …but the problem is I don’t know how to use state-machine using push buttons (user interface)
A quick response will be highly appreciated.
Thanks
Fayasoft
06-08-2007 09:23 AM
06-08-2007 11:11 AM
06-12-2007 05:47 PM
Hello JB,
Thanks for the suggestion and sample program. I tried and it worked but there is still a problem.
there are couple of states in my program , one of them is Signal Acquiring and other state is Data Logging.
in the begining i press "signal acquiring" button and program displays it on the graph . as soon as I press "Start Logging" , lets say if i log data for 5 min , and after 5 min if i open log file the data is there but pressing log option stops displaying at the graph during logging time.
how can I prevent this situation.
Thanks,
Fayasoft
06-12-2007 09:27 PM