07-18-2019 10:44 AM
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
Solved! Go to Solution.
07-18-2019 02:32 PM
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.
07-18-2019 02:52 PM
Sorry, but i don t want to disable manually during plugin configuration.
I want to disable at the sequence startup.
07-18-2019 02:56 PM
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.
07-18-2019 03:01 PM
I backsaved to 2014.
07-18-2019 03:41 PM
I have just my phone.
Teststand doesnt run on Android 😉
I will look at tomorrow.
Thanks
07-20-2019 03:51 AM
Hi,
I tried your example, and it's working like a charm.
Thanks a lot.