01-29-2018 05:54 PM - edited 01-29-2018 05:55 PM
Hi all,
This is going to be a little tricky to articulate, but here it goes:
I’m customizing a plugin based on the NI offline results generator.
On a per-socket basis, I need to be able to disable offline results generation. This is not too bad except that in some circumstances all sockets are in this state, and in the batch model this state gets set in our PreBatch callback. By that time there seems to be no easy way to turn off offline results generation altogether. It still creates the file and I no longer want it to.
Is there any way to disable the offline results generator plugin from the PreBatch callback?
From the "Model Plugin - Pre Batch" entry point I have tried
Parameters.ModelPlugin.Base.Enabled = False
RunState.Root.Locals.ModelPluginConfiguration.Plugins[Parameters.ModelPlugin.Base.RuntimeVariables.ProcessorIndex].Base.Enabled = False
...but it continues along merrily and still outputs the TSR file.
Is there some method somewhere that will accomplish what I need to here?
Thanks as always,
Mr. Jim
Solved! Go to Solution.
01-30-2018 10:11 AM
Could you add a small reproducing test case with your architecture for us to look into?
Also, are you calling any other report generation plugins at the same time?
01-30-2018 10:18 AM
Hi Chase,
Thanks very much for your reply.
I talked to one of your colleagues via phone this morning - I'll PM you his name, and he can give you many more details.
Here are the plugins I've been developing so far:
In lieu of a test case, hopefully your colleague can fill you in?
Thanks again - I truly appreciate it.
Mr. Jim
01-31-2018 05:36 PM
Ill speak with him and see what he says!
01-31-2018 05:56 PM - edited 01-31-2018 06:13 PM
Hi Chase, I should have updated this sooner. Here's the strategy I'm going for based on a discussion with support:
Not trivial, but doable. I've almost gotten it finished and it does seem to work.
A heartfelt thanks to the NI personnel who helped me with this, including you, Chase.