필터 지우기
필터 지우기

Write value to gauge in MATLAB design app

조회 수: 9 (최근 30일)
David Proctor
David Proctor 2020년 2월 26일
편집: David Proctor 2020년 2월 27일
Cannot write value to display on guage in app layout. Looking to display velocity of of DC motor.
Thanks
  댓글 수: 1
David Proctor
David Proctor 2020년 2월 26일
편집: David Proctor 2020년 2월 27일
Cheers Benni,
Just started using MATLAB, I have the motor RPM=app.x from a selector switch for 3 speeds. I want divide by 60 to put into rev/sec then display on guage app.VelocityRevSecGuage. Also the pulse frequency of stepper motor fz=app.x/0.3 and display on another guage app.
Thanks

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

채택된 답변

Benjamin Großmann
Benjamin Großmann 2020년 2월 26일
In the inspector, look for the label of the gauge. Originally it is labeled as "Gauge". You also see this on the code page inside the app property block. Then you can write to your gauge from a function within your class via app.Gauge.Value = x; where x is the value that you want to display.
How do you obtain the velocity of the DC motor?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by