NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Thread output not in report

I'm Running TestStand 4.01 on XP.
My MainSequence makes a sequence call as a new thread. But when the report (xml) is generated, it contains only the MainSequence steps.
 
Hurst
0 Kudos
Message 1 of 6
(3,802 Views)
You need to use a wait step.  The results will be placed in that step.

http://zone.ni.com/devzone/cda/tut/p/id/4823

Allen P.
NI
0 Kudos
Message 2 of 6
(3,798 Views)

Ok, I got both threads in the report.

These threads represent both sides of a communications interface, so timing is important.

Is there any way of getting the report in time order rather than thread order?

Or, is there some way of getting a time stamp on each step?

 

Hurst

0 Kudos
Message 3 of 6
(3,795 Views)
Hi hurst,

There is not an easy way to interleave steps from multiple threads on the same report.  You can display a timestamp with each step by assigning the time to Result.ReportText and it will be displayed on the report.  To obtain the time, you can use TestStand's Time() function which is available in the Expression Browser  on the second tab labeled Operators/Functions.
Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 4 of 6
(3,761 Views)

Hello,

I write to this thread becouse my problem is similar.

In my sequence I call several sub sequences in new threads and at the end I use a custom step which waits for all their execution.This step is written in LabView and I use the method "Wait for End" passing to it an array of thread references. What I want to know is how to get the result lists as well. The "Wait for End" method has a parameter named "StepToStoreTheResultIn" and I think that should be what I need but I dont' know how to use it.  what do I need to connect to?

Thank you

Enzo

 

0 Kudos
Message 5 of 6
(3,729 Views)
Hi Enzo,

The stepToStoreResultsIn specifies a step in which to store the results of the execution. If you specify a step, the step's result status will reflect that of the execution and the result list for the execution will be stored in the TS.AsyncSequenceCall result property for the step.

Therefore, you will pass it a reference to the step you wish to store the results of the threads in.  You can use the Sequence Context to create a Sequence Property Node and then use that property node to call the GetStepByName method.  You can pass the output of the GetStepByName method to the stepToStoreResultsIn input.
Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 6 of 6
(3,599 Views)