NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i save my Test Stand report as the serial Number?

Hi, I'm using TestStand 3.0 and LabVIEW 7.0 I want to know how i can save my TestStand generated report as the UUT serial number. Thanks
0 Kudos
Message 1 of 5
(4,213 Views)
Hi arj,

Within the Report Option in the Report File Pathname Tab is a control 'New UUT Report File for Each UUT'. Enabling this will include the Serial number in the Report Filename. Unfortunately its formated into the filename as '[serial number]'.

This is done in a step in the Process Model - Test UUTs or Single Pass. This step is called 'Determine Report File Path' which is a dll call to a function in modelsupport2.dll. This returns the full pathname to the report and stores in Locals.ReportFilePath.

So you have the option either modify the Locals.ReportFilePath or modify the Function in modelsupport2.dll and rebuild the DLL.

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(4,213 Views)
One difficulty we encountered with this mechanism in TestStand is that our system doesn't determine the UUT serial number until after the testplan has begun (the serial is read from the UUT electronically). At the time Determine Report File Path runs, the serial number is blank, so the filenames all have no number in them.

We resolved that by simply moving the call to Determine Report File Path to be between the MainSequence callback and the PostUUT callback.

We haven't observed any undesirable sideeffects from this change. Nothing is written to the report file before this point.
0 Kudos
Message 3 of 5
(4,213 Views)
Hi,

So do you update the SerialNumber string from your step in the MainSequence to the Locals.UUT.SerialNumber variable in the process model before calling the Determine Report File Path step?


Regards
ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 5
(4,213 Views)
That's right. After MainSequence gets the serial number from the UUT, it puts the value in RunState.Root.Locals.UUT.SerialNumber.
0 Kudos
Message 5 of 5
(4,213 Views)