NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Colelcting step results data from process model?

Hi All,
          I am executing a client sequence file and I'm using a sequential process model. My question is how can I collect all the step results data of the client sequence file which I'm executing from the process model.
 
Thanks
Arun
0 Kudos
Message 1 of 5
(3,616 Views)

Hi,

Either via Database or the Report. These can be enabled via the Configure | Database Options or Report Options. You can also set these options by use of the Override callbacks DatabaseOptions and ReportOptions.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,614 Views)

Hello Prasat,

If want to collect results of a sequence e.g. PreUut.  You have to enable the report flags in your model. Now Reports will be generated.
But take care there is a step (Clear information from previous loop) that deletes your local ResultList !!! (Move it before PreUut if possible !! )

Now it should be able to collect your models results in your in your reportfile. Or if you want to get in your MainSequence
Try this: RunState.Root.Locals.ResultList[0].Status (This is the result of SequnceCall PreUut )
RunState.Root.Locals.ResultList[0].TS.SequenceCall.ResultList[0].Status (This is the result of step Identify Uut)

I have tried this with TS 4.0 and it works!
But note you have to modify your model !

Greetings from the lake of constance, Germany

Juergen


 

   

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 5
(3,585 Views)

Hi j_dodek,

                     Thanks for your reply. As you said we could be able to retrieve the step result status using the way you suggested. I'm done with that. Now I would liek to retrieve the module time of the executed client Step from inside the process model. could you suggest me a way to do that.

Thanks

Arun

 

0 Kudos
Message 4 of 5
(3,579 Views)
Hi Arun
 
Just try this: RunState.Root.Locals.ResultList[0].TS.SequenceCall.ResultList[0].TS.TotalTime
 
Simples way (my opinion) to scroll your result list: Pleace a breakpoint in your MainSequence. Running your Sequence (F5).
When Progamm stops switch from Tab "Steps" to "Variables" in the lower left corner. Now you have all variables on running state. Now just navigate throw the tree  
 
Greetings
juergen
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 5
(3,576 Views)