C++ script input/output channels reset when making changes to input/output configuration
When the input/output channels are modified, this then resets the input and output channels. I then have hundreds of math formulas or statistics that use these channels as inputs that fail due missing input channels and turn red. Using math templates, can make formulas easy to recover, by clicking on their setup and then cancel or saving and exiting. However, the statistics/delay modules fail even with a template most of the time to regenerate because they get stuck on a missing input channel. I think this is partially due to me not using the standard naming convention with a “/parameter” and instead use “_parameter”. I then have to delete the statistics channels and regenerate them, and I have about 500 channels so this takes a while. Also I can only put a few channels in each statistics module otherwise dewesoft crashes.
I haven’t had time to write my own triggered statistics modules in c++ scripts.
I can send an example file if that helps, one in working condition and one in broken state.
Thanks
Gary
Dear Gary,
thank you for reaching out to us. May we suggest that you use special naming for the channels i.e. my_formula which you can then search in basic statistics search box and then right clicking on the field and selecting Check all.
Kind regards.
Attached files:
Thank that really does not fix the bug I am having, its just a work around for a software bug. I also loose the trigger channel information and even using a template won't fill it back in most of the time. I assume the template is setup using some type of index to a channel rather than the name of the channel.
Forgot to mention I already use a custom name for all my channels as suggested. I am not sure why that would help in this case, in my experience everything still fails to regenerate.
Dear Gary,
I have opened a ticket with our developers regarding this so that a better template or search bar in basic statistics (trigger channel) is implemented.
Kind regards.
Ok, that won’t really solve the problem as all of the math channels, statics, and control channels break, it’s just the statical channels that break the worst. Meaning that most of the time they have to be deleted even once the correct triggers are re-input.
Dear Gary,
when changing the input channels in C+ +script the output channels get reset - this is not an easy fix but it is on feature wish list.
Kind regards.
Dear Gary,
the issue with Changing anything in Configure tab removes references in all modules is resolved in DewesoftX 2025.1.
Kind regards.