<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div class="" dir="ltr" id="yiv9079945645yui_3_16_0_1_1444926980224_13058"><span class="" id="yui_3_16_0_1_1444926980224_15581">@Serge: Thank you for the idea!</span></div><div class="" dir="ltr" id="yiv9079945645yui_3_16_0_1_1444926980224_13124"><span class="" id="yui_3_16_0_1_1444926980224_16349"><br class="" id="yui_3_16_0_1_1444926980224_16351" clear="none"></span></div><div class="" dir="ltr" id="yiv9079945645yui_3_16_0_1_1444926980224_13119"><span class="" id="yiv9079945645yui_3_16_0_1_1444926980224_13118">I
 found my problem for running faster.  It turns out the slope of the 
triangle waveform is independent of the period so I had to apply a 
greater gain for the sawtooth for it to cross zero.  Now I am running at
 50kHz.<br class="" id="yui_3_16_0_1_1444926980224_16355" clear="none"></span></div><div class="" dir="ltr" id="yiv9079945645yui_3_16_0_1_1444926980224_13116"><br class="" id="yui_3_16_0_1_1444926980224_16358" clear="none"><span class="" id="yui_3_16_0_1_1444926980224_16360"></span></div><span class="" id="yiv9079945645yui_3_16_0_1_1444926980224_13189"></span><div class="" dir="ltr" id="yiv9079945645yui_3_16_0_1_1444926980224_13210"><span class="" id="yiv9079945645yui_3_16_0_1_1444926980224_13189">Thanks,</span></div><div class="" dir="ltr" id="yiv9079945645yui_3_16_0_1_1444926980224_13208"><br class="" id="yui_3_16_0_1_1444926980224_16374" clear="none"><span class="" id="yiv9079945645yui_3_16_0_1_1444926980224_13189"></span></div><div class="" dir="ltr" id="yiv9079945645yui_3_16_0_1_1444926980224_13209"><div id="yui_3_16_0_1_1444926980224_16379" dir="ltr"><span class="" id="yiv9079945645yui_3_16_0_1_1444926980224_13189">Michael Greenish</span></div></div><div id="yui_3_16_0_1_1444926980224_16378"><span></span></div><br>  <div id="yui_3_16_0_1_1444926980224_16343" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1444926980224_16342" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1444926980224_16380" dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Serge Steer <Serge.Steer@inria.fr><br> <b><span style="font-weight: bold;">To:</span></b> users@lists.scilab.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, October 16, 2015 9:50 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Scilab-users] Faster PWM signal<br> </font> </div> <div id="yui_3_16_0_1_1444926980224_16341" class="y_msg_container"><br><div id="yiv4436180027"><div id="yui_3_16_0_1_1444926980224_16340">
    <div id="yui_3_16_0_1_1444926980224_16344" class="yiv4436180027moz-cite-prefix">Try with lower solver tolerances  with
      the Simulate/Confiure menu.<br clear="none">
      <br clear="none">
      Serge Steer<br clear="none">
      Le 15/10/2015 18:53, Michael Greenish a écrit :<br clear="none">
    </div>
    <blockquote id="yui_3_16_0_1_1444926980224_16339" type="cite">
      <div class="qtdSeparateBR"><br><br></div><div class="yiv4436180027yqt2758768061" id="yiv4436180027yqt01313"><div id="yui_3_16_0_1_1444926980224_16338" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
        <div id="yiv4436180027yui_3_16_0_1_1444926980224_2657">Hello,</div>
        <div id="yiv4436180027yui_3_16_0_1_1444926980224_2658"><br clear="none">
        </div>
        <div dir="ltr" id="yiv4436180027yui_3_16_0_1_1444926980224_2659">I am
          modeling an electrical circuit.  I have a voltage across an
          inductor being switched on the ground side.  I am generating a
          pwm using a sawtooth genartor as shown by the attached image. 
          In my circuit, my PWM switches at 50kHz.  When if I set the
          sawtooth generator period to > 0.025, the results look as
          expected on the graphs.  If the sawtooth generate period is
          < 0.025, the results are flat; the system can't seem to
          calculate at that interval.  The period on the timer attached
          to the scope is 0.0001.<br clear="none">
        </div>
        <div dir="ltr" id="yiv4436180027yui_3_16_0_1_1444926980224_2856"><br clear="none">
        </div>
        <div dir="ltr" id="yiv4436180027yui_3_16_0_1_1444926980224_2834">I am only at
          25ms, I need to get to 0.02 ms to match my real-life circuit. 
          Is there a limit of the system I am running into or do I have
          a parameter wrong?</div>
        <div dir="ltr" id="yiv4436180027yui_3_16_0_1_1444926980224_2855"><br clear="none">
        </div>
        <div dir="ltr" id="yiv4436180027yui_3_16_0_1_1444926980224_2857">Thanks,</div>
        <div dir="ltr" id="yiv4436180027yui_3_16_0_1_1444926980224_2858"><br clear="none">
        </div>
        <div dir="ltr" id="yiv4436180027yui_3_16_0_1_1444926980224_2859">Mike
          Greenish<br clear="none">
        </div>
        <div id="yiv4436180027yui_3_16_0_1_1444926980224_2660"><br clear="none">
        </div>
      </div></div>
      <br clear="none">
      <fieldset id="yui_3_16_0_1_1444926980224_16381" class="yiv4436180027mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre id="yui_3_16_0_1_1444926980224_16382">_______________________________________________
users mailing list
<a rel="nofollow" shape="rect" class="yiv4436180027moz-txt-link-abbreviated" ymailto="mailto:users@lists.scilab.org" target="_blank" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a id="yui_3_16_0_1_1444926980224_16383" rel="nofollow" shape="rect" class="yiv4436180027moz-txt-link-freetext" target="_blank" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br clear="none">
  </div></div><br><div class="yqt2758768061" id="yqt13151">_______________________________________________<br clear="none">users mailing list<br clear="none"><a id="yui_3_16_0_1_1444926980224_16384" shape="rect" ymailto="mailto:users@lists.scilab.org" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br clear="none"><a id="yui_3_16_0_1_1444926980224_16385" shape="rect" href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br clear="none"></div><br><br></div> </div> </div>  </div></body></html>