02-22-2008 11:51 AM
02-26-2008 07:32 PM
02-28-2008 10:52 AM
Thanks for the reply.
That is still using a floating message box and not really pausing. I want to transfer the functionality of that "OK" button to my OI control while displaying the message text in my UI text box. Currently, I'm doing this with Station Globals and programmatically changing the global values (boolean and string). This is a little cumbersome within the sequence since I need to add delays to ensure that the write has occured before the read. I think that using synchronization would still be cumbersome.
Is there any better way to read the state of a front-panel control on the OI from within a sequence (loop until true, etc.) other than using globals or similar variables?
Thanks again,
DB
02-28-2008 06:38 PM
Hi DB,
In your adapter step, you may simply include a Post Expression with RunState.Engine.BreakAll(). This will essentially place the execution of the step in a "Pause" state until you decide to Resume by pressing the button in the OI. In fact, you may use the OI offered above as-is to get the Resume functionality. If you are curious how the Resume is handled, look into the Configure ExecutionView Manager.vi in the above code.
Hope this helps DB.