NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I access all results in callback 'LogToDatabase'?

How can I access all partial test results in the LogToDatabase callback? The keypoint for my question is, that I have a tailored database and I have to store all partial results.
0 Kudos
Message 1 of 4
(3,181 Views)

You'll find the results in "Parameters.MainSequenceResults.TS.SequenceCall.ResultList".

 

Steve

0 Kudos
Message 2 of 4
(3,169 Views)

Thank you!

 

Is there a way to get information about runtime variables instead of debugging a program? 

0 Kudos
Message 3 of 4
(3,159 Views)

eirik -

For unstructured container parameters that are passed to a sequence, there is no simple way to discover the contents until runtime. For the results, there is some documentation in the Ref Manual that discusses the subproperties of a single result. What I have done in the past is: 1) place a breakpoint at the location the run-time variable will exist, 2) run an execution and break at the location, 3) copy the variable from the variables view, 4) one a new sequence and paste the variable under locals to capture it, 5) complete the execution, 6) save the new sequence file, 7) use the variables view to browse the property. Sometimes I actually copy the variable and replace the parameter in my sequence so that I can test my sequence without all the overhead of the model. Hope this helps....

Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 4
(3,151 Views)