NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically delete all results from Resultlist in Parallel Seq. Model

Hello,

I have a continuous test running for 70 Hrs where I test 5 DuTs in Parallel Mode.

I want the resultlist just for one specific Test-Step where I compare the result of previous Step.

 

Due to this Verification test the result list is very huge and takes lot of Mmory rescource thus loading the system.

Thats wh I want to delete the result list totally once I have had my results as mentioned above.

 

Has any one any specific tipps to acheive this ?

Best,

Akshay

0 Kudos
Message 1 of 4
(1,133 Views)

Are you running a very long sequence? I don't quite get how you end up having the ResultList Array grow too much.

 

As for cleaning it out, you could run a statement, after the step where you last need it, to delete it:

Locals.ResultList.DeleteElements(0,Locals.ResultList.Type.ArrayDimensions.GetDimensionsSizes()[0],0)

 

Alternatively, if you really don't need the values in that list, you can just disable it. Configure >> Station Options "Execution">>Disable Result Recording for All Sequences.
And store the value in your own local variable.



Remember Cunningham's Law
0 Kudos
Message 2 of 4
(1,101 Views)

Thanks PeterFoerster for your response,

 

I am running the same code in a loop.

I need the results at a certain point (in a specific Seq. A)only hence can't disable.

I will try to delete it and look at the results for a day or two.

 

Best Regards,

Akshay

 

0 Kudos
Message 3 of 4
(1,083 Views)

You can disable Results for all Sequences in the sequence properties. Then, when running the test once you have reached the loop count where you want to start recording data then dynamically turn on result recording for the sequence in the Setup group with a step expression:  "ThisContext.Sequence.DisableResults = False"

 

Good luck

0 Kudos
Message 4 of 4
(1,061 Views)