<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 6 4 9 2 2 5 2 4 4;}
@font-face
{font-family:Courier;
panose-1:2 6 4 9 2 2 5 2 4 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Monospaced;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:"Courier New";
mso-fareast-language:FR;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Bonjour,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">J’ai un problème de construction de filtre avec la fonction iir.<o:p></o:p></p>
<p class="MsoNormal">Voici mon code :<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Monospaced","serif";color:black;mso-fareast-language:FR">Fe</span><span style="font-size:9.0pt;font-family:"Monospaced","serif";mso-fareast-language:FR">
<span style="color:#5C5C5C">=</span> <span style="color:rosybrown">2000</span><span style="color:black">;</span><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:9.0pt;font-family:Courier;color:#64AE64;mso-fareast-language:FR">//paramètres du filtre Butterworth</span></i><span style="font-size:9.0pt;font-family:Courier;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Courier;color:black;mso-fareast-language:FR">n</span><span style="font-size:9.0pt;font-family:Courier;mso-fareast-language:FR">
<span style="color:#5C5C5C">=</span> <span style="color:black">eval</span><span style="color:#4A55DB">(</span><span style="color:#32B9B9">x_dialog</span><span style="color:#4A55DB">(</span><span style="color:rosybrown">'Ordre du filtre Butterworth'</span><span style="color:black">,</span><span style="color:rosybrown">'6'</span><span style="color:#4A55DB">))</span><span style="color:black">;</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Courier;color:black;mso-fareast-language:FR">fcut</span><span style="font-size:9.0pt;font-family:Courier;mso-fareast-language:FR">
<span style="color:#5C5C5C">=</span> <span style="color:black">eval</span><span style="color:#4A55DB">(</span><span style="color:#32B9B9">x_dialog</span><span style="color:#4A55DB">(</span><span style="color:rosybrown">'Fréquence de coupure en Hz'</span><span style="color:black">,</span><span style="color:rosybrown">'200'</span><span style="color:#4A55DB">))</span><span style="color:black">;</span><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:9.0pt;font-family:Courier;color:#64AE64;mso-fareast-language:FR">//fonction de transfert</span></i><span style="font-size:9.0pt;font-family:Courier;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Courier;color:black;mso-fareast-language:FR">hb</span><span style="font-size:9.0pt;font-family:Courier;mso-fareast-language:FR">
<span style="color:#5C5C5C">=</span> <span style="color:black">iir</span><span style="color:#4A55DB">(</span><span style="color:black">n,</span><span style="color:rosybrown">'lp'</span><span style="color:black">,</span><span style="color:rosybrown">'butt'</span><span style="color:black">,</span><span style="color:#4A55DB">(</span><span style="color:black">fcut</span><span style="color:#5C5C5C">/</span><span style="color:black">Fe</span><span style="color:#4A55DB">)</span><span style="color:black">,</span><span style="color:#4A55DB">[])</span><span style="color:black">;</span><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Lorsque je lance chaque ligne séparément dans la console tout fonctionne mais lorsque je lance ce code depuis SciNotes, Scilab plante dans le calcul de hb avec ce message :<o:p></o:p></p>
<p class="MsoNormal">« Scilab 6.0.0 (GUI) a cessé de fonctionner<o:p></o:p></p>
<p class="MsoNormal">Un problème est à l’origine du dysfonctionnement du programme.<o:p></o:p></p>
<p class="MsoNormal">Fermez le programme. »<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Scilab 6.0.0 sous Windows 10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Avez-vous une idée de ce qui ne va pas ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Bien cordialement,<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6E7678;text-transform:uppercase;mso-fareast-language:FR">Philippe VUILLAUME</span></b><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#6E7678;text-transform:uppercase;mso-fareast-language:FR"> </span></i></b><span style="mso-fareast-language:FR"><br>
</span><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR">Référent Technique / Senior Technical Adviser<br>
</span></i></b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR">Expert scientifique et technique du réseau SNCF - SYNAPSES<br>
</span></i><i><span style="mso-fareast-language:FR"><br>
</span></i><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#6E267B;text-transform:uppercase;mso-fareast-language:FR">SNCF - DIRECTION DU MATERIEL<br>
<i>Agence d’Essai Ferroviaire (AEF)</i></span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#6E267B;text-transform:uppercase;mso-fareast-language:FR"><br>
</span><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#6E7678;mso-fareast-language:FR">21, Avenue Salvador Allende - 94407 VITRY SUR SEINE CEDEX - CRT PRG
<br>
<br>
</span></i><span style="mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p>-------<br>
Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. L'intégrité de ce message n'étant pas assurée sur Internet, la SNCF ne peut être tenue responsable des altérations qui pourraient se produire sur son contenu. Toute publication, utilisation, reproduction, ou diffusion, même partielle, non autorisée préalablement par la SNCF, est strictement interdite. Si vous n'êtes pas le destinataire de ce message, merci d'en avertir immédiatement l'expéditeur et de le détruire.<br>
-------<br>
This message and any attachments are intended solely for the addressees and are confidential. SNCF may not be held responsible for their contents whose accuracy and completeness cannot be guaranteed over the Internet. Unauthorized use, disclosure, distribution, copying, or any part thereof is strictly prohibited. If you are not the intended recipient of this message, please notify the sender immediately and delete it. </p></body>
</html>