Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Updating data in workspace

조회 수: 2 (최근 30일)
siamak
siamak 2012년 11월 14일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
I wrote a .m file which produces some data in workspace. I want to use the data when I am running my model in simulink. It is possible to stop the model and then use the data, but how can I use the data when the model is running? After searching about my problem, I have found that assignin() can be useful. Can someone tell me how can I use the function? An example can be very helpful.
Thanks
  댓글 수: 2
C.J. Harris
C.J. Harris 2012년 11월 14일
I don't think assignin will help you. You'll need to access the Simulink API during run-time from a GUIDE application or similar. But really you want to find an alternative solution as updating Simulink parameters while the model is running is not usually best practice.
siamak
siamak 2012년 11월 14일
thanks, Maybe if you know more about my model, you can help me. In my model I have an ADC block connected to RTDX. I can plot the data sending to CCS, but I want to float the data in simulink model in running operation.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by