NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing default report folder from outside of the sequence editor

Solved!
Go to solution

Hi,

 

I'd like to define the path to folder for ordinary TS reports (xml) outside the sequence editor i.e. in txt file. I'd like to load this value during sequence or sequential model execution (to be read from this file). Playing with this I acheived only copying reports to different my outside definied folder. Does anyone know how to successfully do this operation?

 

Cheers,

 

K

0 Kudos
Message 1 of 2
(3,490 Views)
Solution
Accepted by topic author MimiKLM

I have accomplished this, setting the report path dynamically,  by using the ReportOptions callback in my process model.

 

I had to set the following report options:

 

Parameters.ReportOptions.DirectoryType = "SpecificDirectory"

Parameters.ReportOptions.Directory = "C:\\Program Files\\Functional Test\\Reports\\" + Parameters.UUT_PN

Parameters.ReportOptions.BaseName = "Report"

Parameters.ReportOptions.UseFormatForExtension = TRUE

Parameters.ReportOptions.Extension = ""

Parameters.ReportOptions.ReportFilePath = ""

Parameters.ReportOptions.NewFileNameForEachUUT = TRUE

Parameters.ReportOptions.AddTimeAndDateToFileName = TRUE

Parameters.ReportOptions.GeneratePath = TRUE 

arameters.ReportOptions.Format = "html"

 

The second entry above, I set the directory based on the UUT part number that is scanned by the operator.  So in your case you would need to set the 'Parameters.ReportOptions.Directory' item based on a path you read from a text file.   Depending on the structure of your text file obtaining the report path ( from the file )  could be done in a couple of differnet ways....

 

Thanks,

 

Paul Holzrichter

 

 

 

 

Message 2 of 2
(3,468 Views)