10-18-2011 08:53 AM - edited 10-18-2011 08:56 AM
Hello,
I've modified simple user interface (Labview) shipped with TS.
I've created buttons which call sequences within the sequence file.
The problem is: when I click Test UUT (and scan unit barcode) the whole process runs including clean up and report generation, too.
I'd like to scan UUT and then interact with the buttons I've created to call different kind of test steps (sequences) without exiting from the sequence file.
I want to interrupt the test and exit when I push the EXIT button. I'd use a Do While loop which watches the state of the EXIT button but I don't know how to do it.
Thanks for any suggestions.
10-24-2011 03:27 AM
Dear kopisti,
I think you can just modify your architecture for your needs.
You put the steps for closing resources into the cleanup section. This will execute automaticly, when your sequence finishes.
There are more options to do what you need. Some ideas:
- Put this clean-up steps into a new sequence, and call it, when you want to exit from your UI application.
- put into your main sequence a loop, which polls an "EXIT" variable in a do-while loop. You can access to this variable in your UI application, using the ActiveX interface.
An other solution can be:
- Use the setup group of the sequence to always open the resources, like databases, and close them in the cleanup step-group. This way, you can ensure that you have provided all the resources for your sequences, and you always cleanup, also when the UI application crashes.
You can use sub-sequence call steps to provide modularity.
Don't hesitate to ask questions, if you decided on one of the implementations.
Best Regards,
Tamas Szekely