NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable all model plugins in the sequence

Solved!
Go to solution

Hi all,

 

I want to disable not only report generation but also all others plugins (report or database) at runtime.

In "ReportOptions" callback, I'm using this expression : Parameters.ReportOptions.DisableReportGeneration = True

 

This expression disable NI report generation (NI_ReportGenerator.seq) but it doesn't disable my own model plugin.

 

I tried to add in expression : Parameters.ModelPlugin.Base.Enabled = False

 

But it's not working

 

How can I do?

 

Thanks for your help

 

0 Kudos
Message 1 of 7
(3,427 Views)

I threw together a quick example. Basically you should override the ModelPluginConfiguration callback and iterate on Parameters.ModelPluginConfiguration.Plugins

 

You are right in setting Base.Enabled to False.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 7
(3,387 Views)

Sorry,  but i don t want to disable manually during plugin configuration.

I want to disable at the sequence startup.

0 Kudos
Message 3 of 7
(3,378 Views)

Did you look at my example?????

 

Maybe I'm not sure what you mean by "sequence startup"?

 

The example demonstrates how to do it dynamically when you execute your sequence file.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 7
(3,376 Views)
Solution
Accepted by topic author maxmont

I backsaved to 2014.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 7
(3,375 Views)

I have just my phone.

Teststand doesnt run on Android 😉

I will look at tomorrow.

Thanks

0 Kudos
Message 6 of 7
(3,363 Views)

Hi,

I tried your example, and it's working like a charm.

Thanks a lot.

 

0 Kudos
Message 7 of 7
(3,330 Views)