[Scilab-users] Dynamically change pulse width in Xcos
Adailton Júnior
adailtonjn68 at gmail.com
Mon Aug 28 03:21:04 CEST 2017
Hello, again
I discovered how to do it using Matlab/Simulink, I hope you can help me
to implement using Scilab/Xcos.
In Matlab, I defined a sequence of points that represents a sawtooth
wave using the period T wanted for the PWM. Then, I subtracted the
signal from the sawtooth wave. The value of the subtraction fed a
compare to zero block. If the value of the subtraction was greater than
zero, the output is 0, else, 1.
I tried to implement the same in Xcos but I am too beginner for it. I
couldn't generate the sawtooth wave with the points wanted or even using
the sawtooth block.
Please, help me.
*Adailton Júnior*
+55 69 99237-1589
On 08/23/2017 01:20 AM, Adailton Júnior wrote:
> Hello, everyone
>
> I have been studying transfer functions and I am studying control
> theory now. I was wondering whether, in Xcos, I am able to dynamically
> change the pulse width of the block PULSE_SC. By dynamically, I mean
> during the simulation (when the simulation is running). I want to
> implement a PID controller that modulates the pulse width of that block.
> Is that possible? If not, is there any other way of doing so?
>
> I thank you all in advance.
>
> P.S.: I am sorry for my grammatical mistakes. English is not my first
> language.
>
> Best regards,
>
> *Adailton Júnior*
> +55 69 99237-1589
--
*Adailton Júnior* +55 69 99237-1589
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170827/1803dd35/attachment.htm>
More information about the users
mailing list