02-21-2018 08:53 AM
Hello everyone,
I have a problem with teststand. I have multiple programs to test UUTs with, and some of them need a procesmodel parallel instead of sequential. I already found out how to do this, thanks to this forum. But the problem I have now is this:
Normally the proces model is Sequential. Some programs have a built in statement in the PreUUTLoop to change the proces model to parallel. In the PostUUT I change it back to sequential.
But when I run it the first time after testing sequential, it still runs in sequential mode. I need to stop the parallel test and then rerun it.
I have attached the file I test with.
I already added a delay, even though I think it is pointless.
Any help is welcome.
Solved! Go to Solution.
02-21-2018 09:20 AM
Sorry I can not view your sequencefile as I haven't got TS 2017.
You would need to stop your sequential model executing before you can change the process model.
I would suggest that you have an initial top level sequence that runs without any processmodel which you prompt for a selection for the process model to run with then launch the required sequencefile/sequence using that selection.
Once the execution has completed it could then return you to your selection.
02-21-2018 09:45 AM
If you want I can save the file as a different TS version.
But as far as I understand your reply, I should have a different sequence file, where I choose the procesmodel and according to that choice it should open the real testsequence?
Because that is a bit of a workaround, because I am now writing the testprogram for the production people. And they need it as much automated and without too much choices, to limit the error possibilites.
02-21-2018 12:05 PM
Is your PreUUTLoop in your client sequencefile?
I have TS 2014
02-22-2018 01:02 AM
The PreUUTLoop is in my client sequence file yes.
02-22-2018 06:36 AM
All the PreUUTLoop is doing is setting the Options for which process model to use. (Similar to Menu Configure Station Options...)
It will not be implement this because it only takes affect when you execute your SequenceFile via the Enter Point. Unfortunately you don't see this because you set it back to SequentialModel in the PostUUT.
If you comment out the code in the PostUUT, you will see the ProcessModel change when the current execution completes.
02-22-2018 07:30 AM
I see what you mean, but it should change in the PostUUT back to Sequential. Else I will need to put in every testprogram we use, the statement to chnage the proces model. And the problem still exists, even if I comment the PostUUT statement out, that I need to run the program, stop it and run it again to change the proces model.
02-22-2018 09:02 AM
If you client file needs to run in a particular process model, then set the sequence file properties for a 'Require Specific Model" in the Advanced Tab and leave the Station Options and default.
02-22-2018 09:21 AM
@RayFarmer
Works perfect, thank you very much.