2d plot from simulink too GUI axes

Im controlling A helicopter with simulink and i would like a real time plotting of its position of its x and y cordinates on a GUI axes.
The x position and y position are two seperate signals. How can i get these two signals into and x,y graph that is continuously updated on to the GUI.
Thanks
p.s I have seperate signals of the euler angles and z position for the aircraft . How could i carry this on to have a 3d position of the aircraft.

 채택된 답변

Guy Rouleau
Guy Rouleau 2012년 3월 14일

3 개 추천

Register an Event Listener to send the data to ghe GUI everytime the block output is updated:

댓글 수: 4

Sean de Wolski
Sean de Wolski 2012년 3월 15일
+1
Paul
Paul 2012년 3월 16일
Thanks Guy this looks like it will work
Im decided to use an XY scope so to put a listener on this i used
h = add_exec_event_listener(blk, event, listener)
Am i right in thinking that blk i can have as a variable i can change so it has different directory
Post Outputs will update the graph when it moves
And the Listener i have put to the handlles of my axes on the graph on my GUI ?
Paul
Paul 2012년 3월 21일
I'm still confused actually can some one try and explain it to me plz.
Guy Rouleau
Guy Rouleau 2012년 3월 22일
I am trying to understand your previous comment and I have no idea what this sentence means:
"Am i right in thinking that blk i can have as a variable i can change so it has different directory Post Outputs will update the graph when it moves"
Please add some punctuation or words to help us understand what you are looking for.

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

추가 답변 (0개)

카테고리

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

질문:

2012년 3월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by