Change frequency of sine source mid simulation

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Does anyone know how to change the frequency of the sine source mid simulation? It is not a runtime variable.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    There are a couple methods.

    1. you can do a parameter sweep and set frequency as a variable.
    2. you can use the simple c block to write a function
    3. you can use the voltage-controlled oscillator model in the examples/other folder of your PSIM install.

    The most robust method is to use a DC source behind a resetting integrator that you then convert to a sine wave. There are plenty of examples of this circuit setup in the motor control examples.