How to Create Sine signal in SimCoder

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!!

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.