NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable report creation programatically

I have a customized user interface in C# for Test Stand. From that I need to enable/disable the option for generating report after coompletion of Single Pass/ Test UUT. Is it possible to do so.
0 Kudos
Message 1 of 9
(4,301 Views)

Hi,

You can try StationOptions.DisableResults.

Alhough I don't really understand your question.

Do you want to stop the reporting of the results that have just been collected from a test run?

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 9
(4,299 Views)
Hi! Thanks for the reply. My requiement is : In TestStand Sequence Editor -> Configure -> Report Options dialog, we have an option 'Diable Report Generation'. Is there any interface to do this from my C# code. Regards Sgy
0 Kudos
Message 3 of 9
(4,292 Views)

Hi,

StationOptions.DisableResults should do the trick.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 9
(4,284 Views)
Didnt work by setting DisableResults to true
0 Kudos
Message 5 of 9
(4,279 Views)
Does that mean you ran a sequence file and it still generated a Report?
Regards
Ray Farmer
0 Kudos
Message 6 of 9
(4,276 Views)

Hi,

What I believe you need to do is actual alter the TestStandModelReportOptions file. 

The Tag is [ReportOptions] and the item is DisableReportGeneration=True to disable report.

I think you need to get a reference to the ConfigFile using Engine.ConfigFile.

As it getting late, I'll check this out tomorrow.

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 7 of 9
(4,268 Views)
Hi! Thanks for the reply. I will try this and get back to u. Regards Sgy

Message Edited by Sgy1 on 08-01-2008 03:47 AM
0 Kudos
Message 8 of 9
(4,251 Views)

Hi,

Looking at changing the DisableReportGeneration boolean in the Report Options.

You could use the PropertyObject.ReadEx method to load the configuration data into memory, change the Disable ReportGeneration to True then call the PropertyObject.Write method to save the changed value. (see attached picture - this I have done in a Sequence by calling the ReadReportOptionsDefaultEx() in modelsupport2.dll and then calling WriteReportOptionsDefaultEx(). I copied the first step from Get Report Options sequence found in the ProcessModel sequence file "SequentialModel.seq")

I believe you want to do this in your UI. Therefore your would need to call the relavant API calls that are performed in the  DLL. Have a look at report.c. I'll let you convert to C#

Hope this helps

Regards

Ray Farmer



Message Edited by Ray Farmer on 08-06-2008 09:26 PM
Regards
Ray Farmer
0 Kudos
Message 9 of 9
(4,210 Views)