NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Report in SubSequence in Sequential Model

Solved!
Go to solution

I'm testing 12 UUTs within a loop in a subsequence. Each UUT has a different Serial Number.

I would like to have a separate report for each UUT.

Does anyone have an Idea how this can be done?

 

DOK

0 Kudos
Message 1 of 9
(4,437 Views)

What process model are you using? Usually the best way to achieve this is to use a Parallel or a Batch process model.

 

Check out these links to learn more about process models:

 

https://www.ni.com/en/shop/electronic-test-instrumentation/application-software-for-electronic-test-...

http://www.ni.com/product-documentation/54531/en/ 

Luis CT
0 Kudos
Message 2 of 9
(4,425 Views)

Your're using Sequential PM. Discard my previous reply.

Luis CT
0 Kudos
Message 3 of 9
(4,421 Views)

You are absolutely right, I should be able to do this using the Batch Model.

However, while reading https://www.ni.com/en/support/documentation/supplemental/06/report-generation-explained.html it identified that, in Teststand Version 2012 and above,

" This architecture is more complex, but has a number of benefits over the previous design; for example:

  • Ability to generate multiple reports for a single test, each with independent report settings.
  • Ability to generate reports asynchronously. "

So, in theory, I should be able to have a sub-sequence generate a report.

I've created 2 small files to try to do this. The idea being to have "Inner Sequence" create a report for each UUT

Download All
0 Kudos
Message 4 of 9
(4,420 Views)

Hi DeOdderKeith,

 

You would have to override the TestReport Model Callback and provide a custom way to read each DUT serial num and create a test report for each with a code module. Check this link for more info about this callback:

https://www.ni.com/en/support/documentation/supplemental/06/report-generation-explained.html

 

Luis CT
0 Kudos
Message 5 of 9
(4,419 Views)

I'm already changing the UUT Serial Number by setting 

RunState.Root.Locals.UUT.SerialNumber = StationGlobals.UUT_Serial[Parameters.UUT_Num]

Now how do I tell the Report Plugin that this is a new UUT and it should create a new Report?

0 Kudos
Message 6 of 9
(4,417 Views)

You would have to cerate a new custom Report plugin. The solution that NI TestStand implemented for what you need is solved in the Batch or Parallel Process Models. I dont know how much effort would it take for you to switch to any of those. If you still want to keep using the Sequential PM then that is the only way I can see for now which by the way is not very friendly.

Luis CT
0 Kudos
Message 7 of 9
(4,410 Views)

Have you considered launching the subsequence in a new execution?

When to Run a Sequence in a New Execution versus in a New Thread

 

 

https://www.linkedin.com/in/trentweaver
Message 8 of 9
(4,405 Views)
Solution
Accepted by DeOdderKeith

Running as "New Execution" works !!

I've had to make some changes to the PreUUT and PostUUT and TestReport on both the TopLevel.seq and Inner Loop.seq

 

Thank You WireWeaver

 

 

DOK

0 Kudos
Message 9 of 9
(4,390 Views)