01-27-2009 10:19 AM
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.
01-28-2009 11:04 AM
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
01-28-2009 03:55 PM
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
01-29-2009 04:09 PM
01-30-2009 12:27 AM
Good point, likewise if you use the property loader you have to use \\.
Ray
01-30-2009 12:49 PM
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?
02-02-2009 01:54 AM
Hi,
If you have Parameters.ReportOptions.GeneratePath set to False
then you can ignore the DirectoryType setting.
regards
Ray Farmer
02-02-2009 12:00 PM
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.
02-03-2009 12:38 AM
02-03-2009 08:30 AM
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