필터 지우기
필터 지우기

Access to the Matlab / simulink API

조회 수: 2 (최근 30일)
dave Thawley
dave Thawley 2011년 3월 24일
Please forgive this very basic question. I want to develop a .net application to drive and receive data from simulink but I have no idea how to access the API. Can someone please point me in the right directon regardng on line documentation?
Kind Regards Dave

답변 (2개)

MarkB
MarkB 2011년 3월 24일
In conjunction with Kaustubha's point above about the automation server, the actual commands that you will want to run will likely be either "sim", or "set_param( my_model_name, 'SimulationCommand', 'start')". In addition to this, if you open a model's configuration parameters and go to the "Import/Export" section, you can specify MATLAB variables to be associated with the inports and outports of the model.

Kaustubha Govind
Kaustubha Govind 2011년 3월 24일
Starting MATLAB as an automation server from your .NET application could be an option. You can put your data in the MATLAB workspace using PutWorkspaceData and get it back using GetWorkspaceData. Simulink can read/write from the MATLAB workspace using From/To Workspace blocks.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by