Hi,
I am creating some library blocks for a custom library (the library is called 'Controllers'). One of the blocks (in this case the ramp_limiter) is used inside the other one (asc).
I have created a test harness for the ramp limiter block and tested it succesfully without any problem. However, when I try to do the same with the asc block, I have the following error displayed when I update (Ctrl+D) the model:
If a disable the link between the instance of the ramp_limiter inside the asc block and the library, the model updates and "compiles" without any error:
So, the problem seems to be with this block. Diving a litle bit more, inside this block, there is a Matlab Function block where I perform some calculations (I am not using persistent vars and the implemented logic is stateless):
The thing is that if I restore the library link of the ramp limiter and I try to update the model, Simulink does not complain anymore, so, it seems that there is a problem when I try to use a linked subsystem with a matlab function block inside another linked subsystem. If I remove the Matlab Function block or I disable the library link, there is no error.
May be I need to configure something else or there is something wrong with my approach. Any ideas?
Thank you in advance.
Aitor.