How to send back a continuously updating constant to workspace from Simulink ?

조회 수: 10 (최근 30일)
I have a analog read block to read the value of a potentiometer (using arduino). I want to save that value to my workspace in a constant so that i could later use it . I have tried it using ' To Workspace' and 'Simout' blocks , the problem is that the value is stored when the session of the simulink ends , which is clearly what i donot want . I want the constant to update continuously.
Any advice would be appreciated.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 9월 3일
Could you explain more about how you plan to use the saved constant simultaneously as the model is running. Is there a MATLAB file that you are running in parallel?

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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 9월 3일
Please see Access Block Data During Simulation for the recommended technique to access signal data during a simulation.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by