NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Loops: Remove "Record results" in file with text-editor

Hello,
i have a sequence with a lot of subsequences and often i use loops where currently the option "Record results for each iteration" is everywhere enabled. Is it possible to remove alle the marks with a text-editor via Search&Replace?
Thx
0 Kudos
Message 1 of 5
(3,525 Views)

Hi,

Here is a sequencefile that will switch off the Record Loop.

The file to change is fixed in the Locals but it should be easy to add a dialog box to select the path to the sequence file(s) and add the extra loop to more that one sequence file.

Its  a TS3.5 version.

I had attached a example file to change as will, one of the SequenceCall steps has the loop enabled with the record each iterations.

The property thats being changed is Step.TS.LoopOpt. when Its equal to 0, record is enabled  and when its 1 record is disabled

I hope you will notice that when the LoopOpt == 0 then no action is taken.

(note this sequence file was developed for another query regarding changing the run mode of a selected steptype, so you can ignore some of the variables)

 

Hope it helps

Regards

Ray Farmer

Regards
Ray Farmer
Download All
Message 2 of 5
(3,517 Views)
Thank you for the files. They are working.
But i tried now to create a new seqence file with one sequence-call iin it. There i added a passfail-loop with record result and the i checked Step.TS.LoopOpt. It is in 0 when enabled and 1 when disabled (like you said).
Then i saved the file with Recordresults enabled and opened it with a texteditor.
But i only found the lines:

LoopOpt = Num
%INSTOVRD: LoopOpt = 5046296

Does that mean its not possible to change it via text-editor?
0 Kudos
Message 3 of 5
(3,507 Views)
Hi,
 
Its more likely that when the Loop Record Result is enabled, you will not find an entry in the sequencefile, but you will find the other properties associated with the loop such as LoopType, LoopWhile, LoopStatus.
When the Loop Record Result is disabled then you will find an entry LoopOpt = 1.
 
If you open up the example FileToChange_Loop.seq in notepad and search for [SF.Seq[0].Main[0].TS], (its this step that has the loop record result enabled) you will see what I mean. The look at the next Step which will be
[SF.Seq[0].Main[1].TS], you will notice this has the line LoopOpt = 1, as this step has it disabled.
 
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
Message 4 of 5
(3,502 Views)
Hi Ray,
the hint that there is no entry if record is enabled was what i didnt know before. Now everything is clear.
Thanks for your detailed help.
0 Kudos
Message 5 of 5
(3,497 Views)