NI TestStand

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 11
(6,434 Views)
If you are using the TestStand UUT report then the second tab of report options has all the choices for construction of the report file name. The help button on that tab will give complete information on each choice. Typically, I use a file name composed of the serial number and the time and date of test.
0 Kudos
Message 2 of 11
(6,430 Views)

Under Configure >> Report Option

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

This is the info from the HELP file:

  • 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.
  •  
    You can also add other descriptions to the filename, such as Force number to be unique, etc.
     
    Ray
    Message 3 of 11
    (6,425 Views)

    Hi,

     

    I've tried looking for these options in TS 4.0 but cannot find them. Has the procedure changed? Does anybody know how to add the SN to the report file name anymore?

     

    Thanks!

    Chris

    0 Kudos
    Message 4 of 11
    (6,025 Views)
    It's still there and in the same place - New UUT Report File for Each UUT.
    0 Kudos
    Message 5 of 11
    (6,022 Views)
    Thank you Dennis.

    I realized that I do not have the "Store UUT Report in Batch Report File" option because that only shows up when using a Batch Sequence. So yes, the procedure is the same. As my other post asks (that you kindly pointed out was a repost... sorry about that), I instead need to add the batch serial number, which does not show up as an option in the report parameters when using a Sequential Model.

    Thanks again,
    Chris
    0 Kudos
    Message 6 of 11
    (6,017 Views)
    I'm confused as to what you want. There is no batch serial number created in the standard sequential model so how are creating one? did you modify the UUT container?
    0 Kudos
    Message 7 of 11
    (6,015 Views)

    Yes, I have. It's actually called "Lot number" since each UUT will be tracked by lot number and not serial number. It would make it much easier to keep track of test results if the report name had the lot number included, along with the time/date.

     

    Thanks again,

    Chris

    0 Kudos
    Message 8 of 11
    (6,011 Views)
    It sounds like the lot number is not unique so I would suggest you use both the serial number and lot number. I don't know if you can modify the Configure>Report Options but modifying the Test Report sequence is possible. Which report type are you using?
    0 Kudos
    Message 9 of 11
    (6,001 Views)

    I am using a txt report, so it should be fairly simple to modify the report name. In the TestReport callback, should I be modifying "ReportFilePath?" All I really want to do is change the name of the file and not the path itself.

     

    Thanks,

    Chris

    0 Kudos
    Message 10 of 11
    (5,999 Views)