🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to Create Sine signal in SimCoder

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

Hello,
I was trying to create a sine signal to serve as the input of PWM block to create a SPWM. I have tried several ways but none of them worked.
Could anyone please tell me how to create a sine signal in SimCoder? Whether the signal is continuous or discrete really does not matter. Thanks!!

Find more posts tagged with

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

    A sine voltage source from the library is compatible with code generation.
    Alternatively you can use a model from the file attached. Importantly you need to have a discrete time or digital implementation that has a sampling rate otherwise it will not work when implemented on the DSP.