NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

teststand report generation

Hello

 

I am using Teststand 2019 and the batch model.

 

When i generate a report i want to add the serial number of the UUT in the filename of the report.

I think that the $(UUT) will do this trick but my serial number is dertermined during the test.

I have tried to store the serialnumber in a fileglobal and use that but that doesn't work either.

 

I use the File /Directory Options : "Specify Report File Path by Expresion" because i need the partnumber (stored as a file globals) in the pathname as well and that works fine because this is known upfront but the serialnumber is determined during the test.

 

How can i add this serialnumber to the report for each UUT in the batch (batch of 6 products)

 

thanks in advance

 

0 Kudos
Message 1 of 4
(933 Views)

I'm gathering you haven't found the answer either.  $(UUT) doesn't work, as I see it.  I have wasted hours upon hours trying to get it to work, trying every means I could think of. (parameters., fileglobals, UUT. etc)  All I can get is that it is empty, based on a string being assigned by TestStand, somehow, for some reason only known by National Instruments.  ...and possibly Ray Farmer.  The sequential model must be used in my situation, incidentally.  I just have not succeeded in getting that known serial number of that passed test into that expression defining the filename of the report, no matter how much National Instruments has said it can be done.  No, National Instruments' TestStand just continually says it is empty via a string it has made up and stuffed into $(UUT), and it sticks out like a sore thumb as I look down the stack of (they're plain old ASCII txt) report files in Windows Explorer.  All the files look, from the outside, like they're from the same UUT, dates, times, the product, frankly the kitchen sink, but no unique serial number.  Thank you so much National Instruments.  I have nothing better to do with my time than read (...reading doesn't produce functioning software.)  

0 Kudos
Message 2 of 4
(818 Views)

By the way,

 

"$(UUT)—Replaces the macro with the UUT serial number. This macro creates new UUT report files for each UUT. "

 

no it doesn't

 

of

 

"

Specify Report File Path by Expression

  • Last Updated: 2022-05-25

"

But I would have no problem with someone out there showing I am flat wrong by explaining how to do it AND have it actually work, as well.  ...explaining doesn't mean posting a link for me to go read, either.  It means explaining.  Where does $(UUT) get what it does contain?  I didn't stuff that macro making those useless filenames.  National Instruments stuffed it, and now I have a trail of data files of boilerplate stuffings for serial numbers.

0 Kudos
Message 3 of 4
(812 Views)

The serial number must be known before the test begins.  Any serial number for the UUT obtained during the test cannot be used.  There's your answer.

0 Kudos
Message 4 of 4
(786 Views)