NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Report

Ok well I have a sequence who's base is the sequential model. It is reporting in an html format (ReportGen_html.seq). Via the sequence editor I have overriden the callback for the report options. If I display the hierarchy fo rthe sequence it clearly shows the report options being overriden. I am modifying the "ReportFilePath" Parameter via the Parameters.ReportOptions. However, each time the sequence is run the report file still goes into the Test Stand global directory. What am I missing here ? how can I get it to do where I want by overloading the callback via the Test stand Sequence editor user interface.

0 Kudos
Message 1 of 19
(5,588 Views)

Jim,

 

There are three things you need to make sure you are doing to modify the FilePath from Parameters.ReportOptions.

 

1. Make sure you are using a Statement Step and an expression to modify the ReportOptions rather than changing the Value in the Variables pane.

2. Change the value for Parameters.ReportOptions.GeneratePath to False.

3. Ensure you are using a double backslash to escape your backslashes (i.e. C:\\Temp\\example.xml) when creating the string to modify Parameters.ReportOptions.ReportFilePath

 

If you do these three things the report will be stored in the directory specified by ReportFilePath.

 

Regards,

 

Steven Zittrower

Applications Engineer

National Instruments

http://www.ni.com/support

0 Kudos
Message 2 of 19
(5,563 Views)

Hi,

 

Just to add to Jim comment.

You dont need to use the double backslash i.e. use c:\temp\example.xml. 

Using \\ will generate an error.

 

Its important to ensure you set Parameters.ReportOptions.GeneratPath = False otherwise the report generator will ignore ReportFilePath and will generate the path based on what DirectoryType has been set to.

 

Hope this helps.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 19
(5,554 Views)

Hi Ray,

just to add a comment,

if you are doing your path-stuff in the expression field you need the double backslash.

if you are doing it the variables panel you are right .

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 4 of 19
(5,528 Views)

Good point, likewise if you use the property loader you have to use \\.

 

Ray

Regards
Ray Farmer
Message 5 of 19
(5,517 Views)

What about the Parameters.ReportOptions.DirectoryType parameter?

 

Is its value ignored when the path is specified explicitly?

Its default is "SequenceFileDirectory".

 

In a former forum posting, I saw someone changing it to "SpecificDirectory". Is that a valid value for this parameter?

 

By the way, I think string is not the best type for such a parameter.

Is this done this way on purpose to avoid an enum type parameter?

S. Eren BALCI
IMESTEK
0 Kudos
Message 6 of 19
(5,497 Views)

Hi,

 

If you have Parameters.ReportOptions.GeneratePath set to False

then you can ignore the DirectoryType setting.

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 7 of 19
(5,475 Views)

Thanks everyone for all the help.

 

Yes that works. However, all that ends up in the directory is the TempHtml report. This is the correct report but it is missing the sequence name and the time date information in the report file name. There must be some other parameters that I am missing in order for it to work correctly in its entirety.

0 Kudos
Message 8 of 19
(5,446 Views)

Hi,

 

Perhaps this is a stupid anwers,

But have you ever checked in Editor->Configure->Report Options-> TAB Report File Pathname-> Checkbox: Prefix Sequence FileName..... ?

 

Hope this helps

 

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 9 of 19
(5,427 Views)

Hi,

 

If you have specified a full pathname in Parameters.ReportOptions.ReportFilePath eg c:\temp\my_report_[03_02_2009].html.

If you have done this correctly then you should be seeing the actual report as well as the temporary report. The temporary report will disappear when the execution has been closed in the UI or SeqEditor.

 

My guess is you are only setting a path to a directory (eg c:\temp) which is why you are seeing only the temp report file.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 10 of 19
(5,407 Views)