<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">Hello, again<br>
<br>
I discovered how to do it using Matlab/Simulink, I hope you can
help me to implement using Scilab/Xcos.<br>
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.<br>
<br>
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.<br>
Please, help me.<br>
</font><br>
<font face="Times New Roman, Times, serif"><font size="-1"><b>Adailton
Júnior</b><br>
<font size="-2">+55 69 99237-1589</font></font></font><br>
<br>
<br>
<div class="moz-cite-prefix">On 08/23/2017 01:20 AM, Adailton Júnior
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3500b8a8-b84c-026b-c713-af6d8daa79da@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="Times New Roman, Times, serif">Hello, everyone<br>
<br>
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.<br>
Is that possible? If not, is there any other way of doing so?<br>
<br>
I thank you all in advance.<br>
<br>
P.S.: I am sorry for my grammatical mistakes. English is not my
first language.<br>
<br>
Best regards,<br>
<br>
<font size="-1"><b>Adailton Júnior</b><br>
<font size="-2">+55 69 99237-1589</font><br>
</font></font> </blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Adailton Júnior</b>
+55 69 99237-1589</div>
</body>
</html>