Checking for a button push
hegedus
I am using IG to create a user interface and drive a metrology tool. The user enter a recipe and hit start and the system run and returns data - that all works.
I would like to add a stop/abort button since the run can last an hour and if there is something amiss I would like to gracefully stop.
In the main loop of data gathering I have to check the gantry for movement and issue a stop data collection command when it stops moving and the timing of this is important for positioning synchronization. Currently I am using a regular loop within a user procedure for this and it works. Between scans the gantry has to reset and I have some time and this is when I would like to check for a button push. If i use a regular user procedure with loops the interface doesn't update until all is complete and if I put the function in a background task I risk not having priority of the timing when I need it.
Any suggestions on how to accomplish this?
October 16, 2014 at 04:28 pm - Permalink
That does the trick.
October 17, 2014 at 01:08 pm - Permalink
I think you still have this problem. A background task doesn't run while a dialog is up unless you use
CtrlBackground dialogsOK=1
and even then it will stop if you pull down a menu, or run a long user function.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
October 17, 2014 at 02:14 pm - Permalink