NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Save UUT execution status

Hi everybody,

I'm using TestStand 3.1, with parallel model, for a production line used for assemblying units.

I'd like, when I exit TestStand, to save the status of my UUT, in order to restore them when I restart TestStand later.

I already think about the problem (adding a post-expression on my steps to save the step name, and using a goto step, but it's a hard job!), but I'd like to know if someone already try to do this, and how?

Another trouble is, if I exit TestStand when I'm executing a multithread execution: in general, I use a "wait for thread" step to ensure the good execution of my sequence. Of course, if I resume the system without restoring the threads, it will fail:

step 1 -> run in a new thread
step 2 -> if I exit here, when I restore the system, the nex step will fail because step 1 will not be executing!
wait for thread 1

Thank  for all
0 Kudos
Message 1 of 3
(3,244 Views)
I have a similar requirement.  Is there an easy way to save state or object?
0 Kudos
Message 2 of 3
(3,000 Views)

There is no easy way doo do this.

 

Each step has properties; results are then collected and added to the ResultList. If you want stop and resume an execution, I think you have to save the current ResultList, the current step; when you want restart the execution, use goto or force the first steps to be skipped, and programmatically restore the ResultList. Those elements are dynamically created, and here is the difficulty.

 

To do this kind of pause/resume, you have to play with thoses properties in order to make TestStand seen previous steps as passed and to memorize the different results.

 

Good luck,

0 Kudos
Message 3 of 3
(2,968 Views)