<div dir="ltr"><div><div><div>Dear Serger,<br><br></div>Your hint was quite precise! After replacing ths step driving the switches things got better. Now I'm attempting to change also the pwm control to be event driven.<br>
<br></div>Thanks so much.<br><br></div>Leo<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 2, 2013 at 5:04 PM, Serge Steer [via Scilab / Xcos - Mailing Lists Archives] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4026778&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        The problem may be due to the discontinuities  introduced by the 
<br>switches. The DAE solver assumes the system to be at least continuuos.
<br>It should be better to control the swith,  with a discrete time signal 
<br>instead of the step blocks with are continuous time.
<br>Using discret time control insures the solver is stopped when the event 
<br>arises and restart just after.
<br><br>You can generate a discrete command for the switch using a selector 
<br>block and an "event at time" block.
<br><br>Serge Steer
<br>Le 02/06/2013 05:04, dragaoerrante a écrit :
<div><div class='shrinkable-quote'><br>> Hi people. I started using Scilab just some moths ago, so I'm not well
<br>> experienced on it. I'm trying to simulate a PID control system to be used on
<br>> a DC-DC buck converter. The controller and the converter models seems to be
<br>> ok, but when I run a simulation to increase or decrease load on the fly the
<br>> simulations crashes even before any load has beend added or removed.
<br>>
<br>> The error message says: IDA_ERR_FAIL: Error test failures occured too many
<br>> times (= MXTEF = 10) during one step or occured with |h| = h_min
<br>>
<br>> I also noticed that it popped up on a PWM block that is as simple as a
<br>> sawtooth generator and a comparator. This block have beeing used several
<br>> times without any issue.
<br>>
<br>> Another thing I have to say is that this problem stops occuring if a
<br>> simulate the system with a steady load value.
<br>> Before running the XCOS simulation file it is necessary to run the sce file.
<br>> I would appeciate so much if someone could help me with this.
<br>>
<br>> Best regards,
<br>> Leo
<br>> Buck_5V_01.zcos
<br>> <<a href="http://mailinglists.scilab.org/file/n4026755/Buck_5V_01.zcos" rel="nofollow" link="external" target="_blank">http://mailinglists.scilab.org/file/n4026755/Buck_5V_01.zcos</a>>
<br>> Modelo_Buck_PID_5V_SL_02.sce
<br>> <<a href="http://mailinglists.scilab.org/file/n4026755/Modelo_Buck_PID_5V_SL_02.sce" rel="nofollow" link="external" target="_blank">http://mailinglists.scilab.org/file/n4026755/Modelo_Buck_PID_5V_SL_02.sce</a>>
<br>>
<br>>
<br>>
<br>> --
<br>> View this message in context: <a href="http://mailinglists.scilab.org/Xcos-simulation-IDA-ERR-FAIL-tp4026755.html" rel="nofollow" link="external" target="_blank">http://mailinglists.scilab.org/Xcos-simulation-IDA-ERR-FAIL-tp4026755.html</a></div>
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
<br>> _______________________________________________
<br>> users mailing list
<br>> <a href="http://user/SendEmail.jtp?type=node&node=4026757&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>> <a href="http://lists.scilab.org/mailman/listinfo/users" rel="nofollow" link="external" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>>
</div><br>_______________________________________________
<br>users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4026757&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.scilab.org/mailman/listinfo/users" rel="nofollow" link="external" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>

        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://mailinglists.scilab.org/Xcos-simulation-IDA-ERR-FAIL-tp4026755p4026757.html" target="_blank" rel="nofollow" link="external">http://mailinglists.scilab.org/Xcos-simulation-IDA-ERR-FAIL-tp4026755p4026757.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Xcos simulation IDA_ERR_FAIL, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Xcos-simulation-IDA-ERR-FAIL-tp4026755p4026778.html">Re: Xcos simulation IDA_ERR_FAIL</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>