interface Simulink model and program

조회 수: 3 (최근 30일)
Mauricio Bassallo
Mauricio Bassallo 2021년 5월 3일
답변: Amrtanshu Raj 2021년 6월 25일
Hi,
I have a model created in Simulink (also with Simscape elements) and I want that some some outputs (ports) of the model be sent to another program, which is going to return inputs to the model (control the model) based on the outputs that was sent by the model.
Does anyone have some idea about how to create an interface between Simulink model and a program in order to generate such dynamic?
Thnaks in advance for your reply!
Mauricio

답변 (1개)

Amrtanshu Raj
Amrtanshu Raj 2021년 6월 25일
Hi,
You can put your code(another program) in a matlab function block with the input and outputs as per your need. This will bring everything in Simulink.
Hope this helps

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by