LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Serial Number to the report name?

HI,
 
I'd like to add the option of including the SN to the report name.  A good option will be to automatically set the default base name to the SN.
 
I'm open to suggestions. Either a simple solution where I'll always get the SN as the base name, or
a more complicated solution where I can really make some modifications to the report option dialog page to include that upon user selection.
 
Thanks
Rafi
TS3.5+CVI8.0
 
p.s. an example, if exist, will be highly useful (and appreciated of course)
0 Kudos
Message 1 of 5
(3,085 Views)
OOps..sorry, belong to the TestSTand forum
0 Kudos
Message 2 of 5
(3,076 Views)

That's okay... I can answer here as well... 😉

Under Configure >> Report Option

UNSELECT "Store UUT Report in Batch Report File" first, then select "New UUT Report File for Each UUT"

 

  • New UUT Report File for Each UUT—Appends a string containing the current UUT serial number to the base name of the report file. For example, uut_report.html becomes uut_report[SN000001].html. This setting is not available if you select Store UUT Report in Batch Report File.
  • Message 3 of 5
    (3,062 Views)

    Hi Joel and thanks for your answer,

    I'm familiar with the option you indicated.  The SN which is added in this case is NOT the serial number of the UUT (as appear inside the report, on the top...) but a running and incremening number.

    Any idea how to include the UUT's serial number?

     

    Thanks

    Rafi

     

     

    0 Kudos
    Message 4 of 5
    (3,044 Views)
    Rafi,

    Selecting "New UUT Report File for each UUT" should add [UUT] to the report file name preview.  For instance SequenceFileName_Report[UUT].txt.  If you look at the files that are produced from this option, UUT will we replaced with whatever serial number you have chosen, as Joel pointed out.  The incrementing numbers should only appear if you have "Force File Name to be Unique" option selected.

    If you want to get more complicated, you can change the Locals.ReportFilePath in the Process Model.  The Report.Save function is passed the Report File Path.

    However, the option that Joel offered should work.

    Regards,

    Tyler T
    0 Kudos
    Message 5 of 5
    (3,027 Views)