NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

can I set the "step run mode" -property with the property loader

Is it possible to set the "step run mode"-property  by using the property loader to "Skip" , "Normal" or "Force PASS" ...in TestStand 3.0 ?
0 Kudos
Message 1 of 4
(3,780 Views)
I turned on Station Options>>Preferences>>Show Hidden Properties and then exported the Step.TS.Mode property to a limits file. I then added a PropertyLoader step and it functioned correctly. 
 
Note that importing a hidden TS subproperty makes an edit to the sequence file, even if done at runtime. Thus if you later save the file, you might end up inadvertently saving the last imported values. This isn't necessarily a problem if the values in the file are always overwritten by a property loader step.
 
(btw, I tested this in 4.0, but I'm hopeful it would also work in 3.0)
0 Kudos
Message 2 of 4
(3,778 Views)
Since the sequence file gets modified at run time, this will not be a option for me . Because our code has an integrated CRC integrity check which will fail if I use this feature. Anyway, Thanks!
0 Kudos
Message 3 of 4
(3,756 Views)
For the sake of reference, unlike the other TS sub-properties, it is possible to set the run mode without modifying the file. You can do this by passing the Execution parameter to Step.SetRunModeEx. The property loader does not call this method because it treats all properties generically.  I'm pretty sure it would be possible for you to special case the property loader, for which we provide the source code, to use this method for the run-mode property. However, making your own copy of the property loader just for this might not be worth the trouble.
0 Kudos
Message 4 of 4
(3,719 Views)