01-16-2019 06:12 AM - edited 01-16-2019 06:22 AM
Hello all,
I am trying to programmatically enable a button on my user interface when the Post Batch sub sequence has finished executing from the Batch Model.seq.
Originally I thought of adding a custom UI message and then programmatically enabling the button when that custom UI message is sent however I would rather not add this extra dependency.
Is there any way of checking if the Post Batch sub sequence has finished using the already supplied UI messages from TestStand?
Any suggestions would be most appreciated.
Solved! Go to Solution.
01-17-2019 04:53 AM
Hi,
In the list of available pre-defined UI messages I found UIMsg_ModelState_TestingComplete. It is sent when the MainSequence returns control to the process model. In case of a Batch Model, I interpret it to be sent after every test socket is finished, i.e. when the postBatch callback executes.
I suggest you give it a try.
See UIMessageCodes Enumeration for more details.
Cheers!
//Marcus Bengths
01-24-2019 03:22 AM
Thank you but that user event is triggered before our pre-batch dialog executes. But thank you.
Instead I have decided to implement the following solution to the problem.
I hope this can help whomever else comes across this issue.
Kind Regards,
Conor.