Get Matlab Code for Simulink input port

1 回表示 (過去 30 日間)
Alicia Roder
Alicia Roder 2017 年 3 月 13 日
コメント済み: Alicia Roder 2017 年 3 月 14 日
I am looking for the Matlab Code used to define the Simulink input port. Up till now I can only find C based functions to modify the Input port characteristics. Is there no way for users to access the corresponding Matlab Code? Thank you!
  2 件のコメント
Steven Lord
Steven Lord 2017 年 3 月 13 日
Can you say a little more about what you're trying to do? Knowing that we may be able to help you achieve your end goal.
Alicia Roder
Alicia Roder 2017 年 3 月 13 日
I am trying to create my own building block which acts as a switch for hydraulic systems. Depending on a simulink input a hydraulic node should be connected to one of two hydraulic output nodes.

サインインしてコメントする。

採用された回答

Steven Lord
Steven Lord 2017 年 3 月 13 日
Have you read through the instructions for how to create a custom block or component? There's one set of instructions in the Simulink® documentation and one in the Simscape™ documentation. I think you'll find what you need in one of those two locations.
  1 件のコメント
Alicia Roder
Alicia Roder 2017 年 3 月 14 日
Thank you. The individual blocks Simscape or Simulink work fine. My Problem is combining both functionalities. As soon as I integrate Simulink code into a Simscape block I get error messages such as "Simscape language does not Support MATLAB command xy" - Simscape does not seem to be compatible with some parts of the MATLAB Simulink syntax. Currently I am looking for a way to avoid syntax incompatibility and was looking for some information on that.

サインインしてコメントする。

その他の回答 (1 件)

ES
ES 2017 年 3 月 13 日
set_param, get_param?

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by