NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically set StationOptions.TimeLimit for current execution

Hi,

 

I execute a lot of test sequences using SinglePass. I need to add a timeout mechanism so that if a test sequence is too long, its execution is automatically terminated, and next test sequence execution is triggered (from outside).

My solution idea is to dynamically set StationOptions.TimeLimit at the begin of the test execution of a sequence (we read the value of an attribute of the sequence, and set StationOptions.TimeLimit to this value, + SetTimeLimitEnabled + SetTimeLimitAction).

This action is done at the all beginning of the sequential model.

Unfortunately, it doesn't work. StationOptions is correctly set but i guess that the value is loaded by Engine before the assigment i did. So the last value is used, not the updated one.

Any one can suggest solution ?

Thanks

0 Kudos
Message 1 of 1
(1,843 Views)