Hi there,
I am trying to use the “B&R extended struct block” from the B&R Automation Studio Target for Simulink library, but it does not seem to work as intended.
The main problem is that it does not automatically generate the Simulink.Bus and MATLAB struct when compiling the model. The only way I have found for the block to generate the bus/struct is by double clicking on the block and then cliking on the “OK” button. It kind of works as a work-around, but it is rather annoying and poor use of time to have to do that every time and on every block.
Has anyone found a better solution?
I have tried to use the different callback functions (‘init’, ‘preSave’, ‘postSave’,’ …) from the block to see if it could be done programatically but failed to find the right function.
Thank you,
Jérémie