필터 지우기
필터 지우기

Simulink and COM (Component Object Model)

조회 수: 2 (최근 30일)
Wan Nawi
Wan Nawi 2011년 4월 1일
Hello all,
I know that MATLAB can utilize COM and acts as server or client. What I want to know is, whether a direct interface between Simulink and COM possible is. If not, maybe it can communicate with COM via MATLAB interface.
Any idea?
Thanks!

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 4월 1일
Simulink has to be run in Matlab. Everything you do in Simulink can be done with a command in Matlab. So, I think there is no direct interface between Simulink and COM. It has to be done through Matlab.
  댓글 수: 1
Wan Nawi
Wan Nawi 2011년 4월 4일
To interface MATLAB and COM, I use a MATLAB function. Is it possible to integrate the function in Simulink using S-Function?
My target is to have Simulink outputs the data in real time to COM

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

MarkB
MarkB 2011년 4월 1일
Fangjun is correct, you can only interface MATLAB through COM, but you can control Simulink from MATLAB, which could be enough. The "open_system" and "close_system" will let you open and close model files, and the "sim" command will run them. In addition to this, the Configuration Parameters' "Import/Export" tab lets you control how/if the model's inports and outports read and write to the MATLAB workspace.
  댓글 수: 1
Wan Nawi
Wan Nawi 2011년 4월 1일
Thanks very much. Will look into that solution.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by