Slider controlling a gain problem

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by Joe on Fri, 06/19/2015 - 19:45 


I am using a 'slider' block to control the value of a 'gain' block whose value is defined by a 'variable' set by the 'slider'. When I run the simulation, the 'gain' does not change according to the 'slider' value, what is going on?

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2020

    Submitted by Ric on Fri, 06/19/2015 - 19:47.

    Gain block values in VisSim are only evaluated at the start of the simulation, so adjusting the “slider” during the simulation has no effect on the output value.
    See Below.

    slider-gain.png

     

    To to dynamically update the “gain” value during simulation, use a “*” block like so:
     

    slider-mul.png

     

    Unable to find an attachment - read this blog