From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically Generate new Batch Report

I am using the BatchModel and I have configured the report generation to generate a separate report for each DUT and a single report for the batch. 

Between batch executions I want to be able to stop logging to the current batch report and create a new batch report (with a new Batch Serial Number) for subsequent batches.

I've taken a look at he NI_ReportGenerator.seq and the "Model Plugin - Batch Start" sequence has a step ("Clear Batch UUT Report File Path Map") where it sets the number of elements in the BatchUUTStatusPathMap to 0.

Based on context I think what I would need to do was to generate a new batch serial number in the PreBatch Callback of my sequence file and somehow reset the number of elements in this BatchUUTStatusPathMap. The full path (as noted in the NI_ReportGenerator sequence) is:

Parameters.ModelPlugin.PluginSpecific.RuntimeVariables.BatchUUTStatusPathMap.SetNumElements(0)

 

I just don't know how to access the variable from my sequence. Must I create a model plugin that overrides the specific callback in the NI_ReportGenerator?

0 Kudos
Message 1 of 1
(660 Views)