<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 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Arial-BoldMT;}
@font-face
        {font-family:Arial-ItalicMT;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.3pt 841.9pt;
        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><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You can use csvRead (Atoms package) in order to read huge ascii files … it’s a more powerfull and a faster alternative to fscanMat …<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Paul<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.scilab.org [mailto:users-bounces@lists.scilab.org] <b>De la part de</b> Gautier, Alexis<br><b>Envoyé :</b> mardi 20 novembre 2012 21:21<br><b>À :</b> users@lists.scilab.org<br><b>Objet :</b> [Scilab-users] fscanfMat limitations/failure function<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I need to post treat data from a data logger (temperatures, strains, etc).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Raw data are in a txt file with numbers and Tabulation column separator.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>File size can goes up to 100 Mb (> 400.000 lines)<o:p></o:p></span></p><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'>I use “</span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced'>fscanfMat</span><span lang=EN-GB style='font-family:"Arial","sans-serif"'>“ function to read the raw data file before post treatment and most of time Scilab display this:<o:p></o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'>D=fscanfMat(F1);<o:p></o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'>                !--error 999 <o:p></o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'>fscanfMat: Memory allocation error.<o:p></o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'>at line       8 of exec file called by :<o:p></o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'>But sometimes (after several Scilab close/opening), complete program is OK and post treatment is performed.<o:p></o:p></span></pre><pre><span lang=EN-GB style='font-family:"Arial","sans-serif"'>I use also </span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced;color:#32B9B9'>stacksize</span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced;color:#4A55DB'>(</span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced;color:rosybrown'>'max</span><span lang=ZH-CN style='font-size:10.5pt;font-family:SimSun;color:rosybrown'>’</span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced;color:rosybrown'>)</span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced'><o:p></o:p></span></pre><pre><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced'><o:p> </o:p></span></pre><pre><span lang=EN-GB style='font-size:10.5pt;font-family:Wingdings'>è</span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced'> What are the Scilab limitations about txt file reading?<o:p></o:p></span></pre><pre><span lang=EN-GB style='font-size:10.5pt;font-family:Wingdings'>è</span><span lang=EN-GB style='font-size:10.5pt;font-family:Monospaced'> Could it be possible to increase this capacity<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks in advance for your feedback.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-GB style='font-size:9.0pt;font-family:Arial-BoldMT;color:#00AEF0'>Alexis Gautier</span></b><span lang=EN-GB><o:p></o:p></span></p><p class=MsoNormal><i><span lang=EN-GB style='font-size:9.0pt;font-family:Arial-ItalicMT;color:#00AEF0'>Architecture System & Components</span></i><span lang=EN-GB><o:p></o:p></span></p><p class=MsoNormal><i><span lang=EN-GB style='font-size:9.0pt;font-family:Arial-ItalicMT;color:#00AEF0'>Mechatronics Development PhD Engineer</span></i><span lang=EN-GB><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:Arial-BoldMT;color:#00AEF0'>Inergy Automotive Systems <o:p></o:p></span></b></p></div></body></html>