Question: PWM Custom Component

Hi,

it shouldn't be hard to, do, but i cannot get this working. I just want to create a signal source that creates a pulse form signal with the pulse width parameter as a realsignal input. I used the custom component template and tried the DynamicSystems[Square] command, but the error messages that came up during this process didn't help me too much, because they seem to be unrelated (error in collect/series...). Do i have to create a new System first (DynamicSystems[NewSystem])?  

I know there is another way to do this by using a saw tooth source+PID controller+stuff, but i want to get used to the templates. Could someone provide me a working example ?

 

Thanks

Please Wait...