<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Tony,<br>
<br>
The problem comes from braces that you use. Scilab does not need them.<br>
<pre
style="font-family: Monospaced; font-style: normal; font-size: 13px;"><span
style="color: rgb(160, 32, 240);">if</span> <span
style="color: rgb(74, 85, 219);">(</span><span
style="color: rgb(0, 0, 0);">Vin_max</span><span
style="color: rgb(92, 92, 92);">/</span><span
style="color: rgb(0, 0, 0);">Rrc</span><span
style="color: rgb(74, 85, 219);">)</span><span
style="color: rgb(92, 92, 92);"><=</span><span
style="color: rgb(188, 143, 143);">750e-6</span> <span
style="color: rgb(160, 32, 240);">then</span>
<span style="color: rgb(255, 5, 26);">printf</span><span
style="color: rgb(74, 85, 219);">(</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(188, 143, 143);">Rrc OK\n\n</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(74, 85, 219);">)</span>
<span style="color: rgb(160, 32, 240);">else</span>
<span style="color: rgb(255, 5, 26);">printf</span><span
style="color: rgb(74, 85, 219);">(</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(188, 143, 143);">Rrc too small - correction required.\n</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(74, 85, 219);">)</span>
<span style="color: rgb(255, 5, 26);">printf</span><span
style="color: rgb(74, 85, 219);">(</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(188, 143, 143);">Maximum current: %6.3f uA\n</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">ircmax</span><span
style="color: rgb(74, 85, 219);">)</span>
<span style="color: rgb(255, 5, 26);">printf</span><span
style="color: rgb(74, 85, 219);">(</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(188, 143, 143);">Minimum current: %6.3f uA\n</span><span
style="color: rgb(188, 143, 143);">'</span><span
style="color: rgb(0, 0, 0);">,</span> <span
style="color: rgb(0, 0, 0);">ircmin</span><span
style="color: rgb(74, 85, 219);">)</span>
<span style="color: rgb(160, 32, 240);">end</span></pre>
works perfect. There is nothing related to printf.<br>
<br>
Samuel<br>
<br>
<br>
Le 06/12/2011 01:20, Tony Radice a écrit :
<blockquote cite="mid:1323130821147-3563077.post@n3.nabble.com"
type="cite">
<pre wrap="">Ladies and Gentlemen -
I apologize for this (possibly simple) question from a newbie - but
after looking for the problem on the wiki, on google, in the help files and
with a co worker we are stumped. The following code (sans the comments) is
the issue - we have tried it on 5.2.2 and 5.3.3 and the behaviour is the
same, so it's probably me. The question is "Why am I getting the error
identified, what does it mean, and would someone please point me in the
correct direction to clear it?" I have tried changing the format
designators (f, g, and e), the resolution (6.3 is what i really want) and
moving the computations in and out of the printf statement.
</pre>
</blockquote>
<br>
</body>
</html>