필터 지우기
필터 지우기

How could I get workspace variables' name, type in real time

조회 수: 2 (최근 30일)
Tony
Tony 2014년 12월 17일
댓글: Tony 2014년 12월 18일
Hi,
I am a student and now working on a project that using a C++ program to communicate with Simulink on real time. The problem is: I do know there are some functions like GetWorkspacedata or GetFullMatrix, however these functions need you know the name and type of the data you want to get. How could I get these data without knowing them already, I mean is there a function in COM automation server or Engine could get the list/array/whatever of data's names and types?

답변 (1개)

Stalin Samuel
Stalin Samuel 2014년 12월 17일
  댓글 수: 1
Tony
Tony 2014년 12월 18일
I know in Matlab I can use who command to show all the variables, but my problem is I don't want to do this on matlab which means I need to do it everytime when I change the simulation model. Is there any function like who() that I can use it in C++ program, or could I use who() in MCC/automation server/engine?
Still appreciate so much for your answer!

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by