logging data from Simulink to workspace

조회 수: 2 (최근 30일)
Asmaa Hassanein
Asmaa Hassanein 2023년 7월 25일
댓글: Paul 2023년 7월 26일
Good evening all,
Kindly i have a very small question yet i need the answer from a maltlab expert if their time allows,
I am working in Simulink Matlab and there are data and curves that i want to load to the workspace, i know such a mission is done via the block (To workspace) yet what i really need is that i want to use some of these data again and send them back to the simulink via( From workspace) but i want them simultaneously
The propblem here is that if i want to use (From workspace ) block the data need to be saved first at workspace and i want to achieve this by using only time simulation run, in the normal case i need to do the simulation twice, once to load the data themselves to the wokspace and second run to recieve them at the workspace after doing some modulations so if there is anyother way to make the whole process at the same simulation run so that i can only use one run.
Your time and respnes are highlly appreciated

답변 (1개)

Paul
Paul 2023년 7월 25일
Hi Asmaa,
Because the signals are already in the simulation, why would there be a need to send them from Simulink to Matlab only to have them come back from Matlab to Simulink, all during a single simulation? Can't the signals be routed and operated on as needed in the model. The To Workspace block should typically be used to save the signal to Matlab so you can work with if after the simulation completes.
  댓글 수: 2
Asmaa Hassanein
Asmaa Hassanein 2023년 7월 26일
first of all thank you for your reply, your time is appreciated.
The point is that i need to work with these data one by one, to clarify more these data are signal sent to simulate the operation of the an actual relay and the actual relay takes signals in their real time.. i want to do the same thing i want during my simulaiton to send these data to the relay that i made in the code during the simulation and compare thes data in the workspace and do some operation and then return some of the data again in the simualink but this has to be done during the same simulation run.. did you get my point ?
Again, thank you for your reply
Salute
Paul
Paul 2023년 7월 26일
Maybe the Model Operating Point workflow is applicable ...

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

카테고리

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

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by