User Input for the Gain Block Using the dashboard elements

조회 수: 1 (최근 30일)
rebecca Sanda
rebecca Sanda 2020년 2월 23일
답변: Nishant Gupta 2020년 2월 27일
I would like to use the dashboard block (like the knob) to change the value in my gain block. How can this be done? Can I directly change the value within the gain block to match the value that is generated from the user input of the knob?

답변 (1개)

Nishant Gupta
Nishant Gupta 2020년 2월 27일
To do this you can use the following steps:
  1. Insert knob block from simulink library browser in your model
  2. Double-click on knob block, block parameters dailog will open
  3. Select the block whose parameter you want to control using knob, for eg. Gain block in your case
  4. A list containing all the possible tunable parameters of that particular block will appear, for eg. Gain for Gain block
  5. Select the paramter you want to tune (Gain here) and then click apply
  6. Now to change the Gain value using knob, first click on the knob, blue outline will come, showing knob is in active mode
  7. Change the position of the knob to change the Gain.
Refer to the model enclosed.

카테고리

Help CenterFile Exchange에서 Control Simulations with Interactive Displays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by