NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to change report file options from a custom operator interface (written in C#)?

We are looking for a way to set the report directory path programmatically. We have a custom operator interface written in C#. In addition, we are using our own modified version of ParallelModel.seq. I have found Engine methods to display various configuration dialogs but nothing for the report options. I'm guessing that I need to use Engine.NewExecution but I'm not sure how to do this. Any help would be greatly appreciated.

Thanks,
Chris
0 Kudos
Message 1 of 3
(2,955 Views)
Hi Chris,

The report directory path is determined in a step in the process model, called 'Determine Report File Path'. This calls a function in the modelsupport2.dll and will return the full report path based on your report options. For the ParallelModel.seq, I think it returns the value back to FileGlobals.DetermineReportFilePathMutexName. The function also opens the file ready for use.

The way to programmable set the report path is usually done by using the Callback Sequence 'ReportOptions', which you would have in you sequencefile. This Callback gives the user the chance to change the default setting from the Configure Report Options Dialog, which you call from the Menu.

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 3
(2,943 Views)
Ray,

The solution you suggested worked out great. Thanks for your help.

Chris C.
0 Kudos
Message 3 of 3
(2,929 Views)