Are S-Functions compatible with Simscape or other Physical Modeling Tools?

3 vues (au cours des 30 derniers jours)
I would like to develop my own custom blocks to interact with SimScape blocks and associated physical modeling tools (SimMechanics, SimHydraulics, etc). I would like to know if S-Functions can be written to work with these products.

Réponse acceptée

Steve Miller
Steve Miller le 13 Déc 2018
Modifié(e) : MathWorks Support Team le 17 Nov 2022
You can connect blocks created from S-Functions to Simscape networks. The interface is done via Simulink signals. This will be OK for certain types of models or effects (calculating a spring force, for example). For others, it will introduce an algebraic loop which you will have to break using a transfer function or a unit delay.
If at all possible, you should consider using the Simscape language or assembling your component from the Foundation library. This will ensure you have a block that can be easily connected into your physical model, will permit Simscape to use symbolic methods to reduce the equations, and provide good diagnostics during simulation.
You can find out more about the Simscape Language here:
--Steve

Plus de réponses (0)

Catégories

En savoir plus sur Physical Units dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

Aucune version saisie pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by