Simulink reference model keeps compiling

Hi Matlab Community,
I have a question on reference model on simulink.
I am working with a top model that includes reference model (pre-compiled to accelerate the compilation of the top model).
However, even of the reference model hasn't changed simulink tells me that the model has change and must be saved (sometimes) and other times just recompile it despite no changes were made on it.
I have 4 reference model in the top model and only one has this problem.
There models are setup to compile on speedgoat real time targets.
I a can give you further information to help you in the better understanding of my problem, do not hesitate.
Thank you !

 Accepted Answer

Hi Gabriel,
Does the problematic reference model include Speedgoat drivers, or other particular blocks that are not included in the other reference models? If yes, which blocks?

5 Comments

Hi Diego,
Thank you for your answer.
Yes, it incluses the IO Setup, Read and Send blocks from Speedgoat Blockset for the IO682 card (Arinc).
However, another model including setup, read/send for IO941, IO107 and IO134 does not recompile everytime. The only model with an issue is the Arinc One. And it takes quite a lot of time so it is being very annoying to recompile.
I've checked the models' options, and both have the 'Recompile if changes detected' option ticked.
It appears that the "Update Model" operation affects models with IO682 blocks. Please report the issue to Speedgoat Support.
Ok, so nothing to do on the Matlab Simulink Side to avoid this useless compilations ?
Thanks for your support Diego.
Correct, this does not seem a problem related to Simulink / Simulink Coder. The problem is that the IO682 blocks are somehow modifying the model even if there isn't any modification. If the model is modified, then Simulink Coder needs to recompile it.

Sign in to comment.

More Answers (1)

I have this problem and I am not using any SpeedGoat Drivers. Is there any other reason for this to happen?

Products

Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!