NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

batch change the same property of some steps in Teststand3.1

    In Teststand, Test steps like "numeric test","pass/fail test". There's a "run option" in their property dialog, which enable or disable to record results. Sometimes, I need to diable/enable its function together with several steps. I prefer to see a batch method, that is to say, select multiple stpes, then open property dialog and diable them. Unfortunately, current Teststand could not do this only once, but have to slect one and disable one. Is there any better ideas?
 
  Thanks
  Jacky
0 Kudos
Message 1 of 2
(2,805 Views)

Hi,

All you need is a sequence, set up in you Tools menu, to pick up the selected steps and change the each of the selected step's proeperty for the reports (Step.TS.NoResults).

You would look at the RunState.InitialSelection.SelectedSteps which is an array, the size of which will give you the number of selected step. Then loop through the array changing the Step.TS.NoResults.

There are examples on the NI Website that loop through a sequence, eg http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EE5556A4E034080020E74861&p_...

(which gets the step name)

There are application notes for setting up the Tools menu.

Hope this gets you going.

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,802 Views)