Problem with Model Referencing as shown in Webinar (Problem with inbuilt S-Function )

1 view (last 30 days)
I've tried setting up a similar Windfarm as shown in this Webinar: Webinar_Windfarm Modeling
However model referencing is not working properly with the Windturbin model included in the Simulink example power_wind_dfig_avg . I also tried this Model: FileExchange_WindtrubineModel
As long as I am referencing 1 single Windturbine, everything works fine. When I include several instances of the same referenced model, I get this error notification:
The S-Function block 'xyz' is not supported in multi-instance Normal mode because it does not declare that it supports multiple execution instances. If the S-Function satisfies the multiple execution instances requirements, you can declare this using the SimStruct function 'ssSupportsMultipleExecInstances' in the 'mdlSetWorkWidths' method.
I'll attach my main model and referenced model,I'd be glad if someone could help me.
Thanks in advance.

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!