NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Quick switch to "No comparison" for all steps in execution

Hi,

 

I need to swich the comparison for all steps in one sequence file.

 

Is it any nice and quick (one line code like) method of doing that?

 

K.

0 Kudos
Message 1 of 6
(4,485 Views)

Using the Find/Replace feature of the sequence editor. Search for Comp with "Match Whole Word Only" checked and only the "Names" Element checked. Then select all matches that aren't the NumericLimitTest step type itself (should be all but the match to the step type). Then put LOG in the Replace With edit control and then press the "Replace Value" button.

 

-Doug

0 Kudos
Message 2 of 6
(4,480 Views)

Also, I noticed you said "for an execution", so beware that this will overwrite the existing value for comparison in these steps. You might want to make a copy of the sequence file first. If you do need to do this programmatically for certain executions, you could do so with the API, but it likely would not be a one-line expression(for example, you would have to iterate through all of the steps in the sequence file).

0 Kudos
Message 3 of 6
(4,476 Views)

Yes,

 

An API function that what I was after.

 

I don't want to search and replace.

 

So, I understand that  there is no API function which disable the comparison and enable the LOG only?

 

It would be very good if we have that functionality in future 🙂

 

Any other ideas?

 

0 Kudos
Message 4 of 6
(4,472 Views)

The information to do this is stored in a step property so you can use the API to do this.

 

Step.Comp = "LOG"

 

or Step.COMP = "GELE"

 

Like Daniel said though you would need to iterate over all the steps.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 6
(4,463 Views)

OK, Thanks guys.

0 Kudos
Message 6 of 6
(4,460 Views)