From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-12-2020 01:52 PM
In "Result Processing", I have two "Generate Report" steps. These two steps save the report in two different locations. I want to change the directory dynamically in the TestStand sequence using Report Options callback for the one step and leave the directory path for the other step unchanged.
Is this possible in ReportOptions callback?
Does ReportOptions callback directory parameter target only the directory for the first "Generate Report" step?
Solved! Go to Solution.
03-12-2020 02:36 PM - edited 03-12-2020 02:36 PM
I assume you mean you have two report processing configurations in the Result Processing dialog box.
Your ReportOptions callback is called separately for each configuration. In the callback, the configured settings are passed in the ModelPlugin parameter. The report specific settings are under Parameters.ModelPlugin.PluginSpecific.Options.
03-12-2020 03:43 PM
Thanks James,
I can use Parameters.ModelPlugin.PluginSpecific.Options.BaseName to point to the result processing configuration I would like to target to change the directory path.
03-12-2020 03:48 PM
Also, cant I use Parameters.ReportOptions.BaseName in place of Parameters.ModelPlugin.PluginSpecific.Options.BaseName
03-12-2020 03:59 PM
Yes, Parameters.ReportOptions is just a shortcut to Parameters.ModelPlugin.PluginSpecific.Options.
03-12-2020 04:05 PM
So I assumed BaseName points to the name of the configuration. Is BaseName the "Output Name" that is shown in the "Result Processing" dialog? If not, I am not sure which variable to check for the "Output Name".
03-12-2020 04:16 PM
BaseName is the text entered in the Report Options [dialog] >> Report File Pathname [tab] >> Generate Report Path [group box] >> Base Name [edit control].
You can edit the options, breakpoint in the ReportOption callback, and then explore the contents of the parameters in the variables view to quickly see what values are in what places.
03-12-2020 06:14 PM
Found the variable that has the "Output Name":
Parameters.ModelPlugin.Base.DisplayNameExpression