필터 지우기
필터 지우기

how to get the port data inside a mask editor parameter/variable of a subsystem ?

조회 수: 1 (최근 30일)
Want to read a data on port in the mask editor . I have an script running (which is called in mask editor),depending upon the value of port my script will work ! It has to read the values during run time !

채택된 답변

Kaustubha Govind
Kaustubha Govind 2014년 6월 9일
Do you mean that you need the mask to be updated at runtime? Could you please expand a use-case a bit more? AFAIK, the mask cannot be refreshed during runtime. As stated in this blog post:
In addition to running when you click OK or Apply, mask initialization runs at the start of every simulation and update diagram, when you call set_param to modify the block, and when you are building the model as you drop the block into the system.
In general though, you can use the technique described in the documentation for Access Block Data During Simulation.
  댓글 수: 1
Ajay Pherwani
Ajay Pherwani 2014년 6월 10일
Ok, got the point , I might have misplaced my question !
My actual problem is that : I need to access a DSM object value in my Level-2 Mex-C SFunction during simulation Time !
It is possible by any way ?
Assuming there is a variable 'engine_speed' updated in subsystem 'xyz'. I have an another subsystem 'abc' (S Function block),can I access engine_speed value inside S-Function of 'abc' block ?

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by