Where is inport value coming from?

I am trying to decipher a Simulink model that someone else wrote. Several blocks have inports labeled 'position'. But I can't figure out if 'position' is calculated during the simulation (though I expect that it is) or is pulled in from the workspace. If 'position' comes from the workspace, it must have another name; there are no variables in the workspace with this name.
Is there a way to trace and identify the value that goes into an inport?

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 3월 13일

0 개 추천

See Importing Data to Root-Level Input Ports. In particular, you need to look at the Configuration Parameters > Data Import/Export > Input parameter.

댓글 수: 1

K E
K E 2012년 3월 13일
Thanks. This was helpful in diagnosing my problem, which stemmed from not understanding that a Discrete FIR filter created the signal labeled 'position'; 'position' never becomes a named variable. I did learn to trace inputs and outputs (right click on the line and choose 'Highlight To Destination' and 'Highlight to Source'.)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

K E
2012년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by