<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>ld_ReadAsciiFile</title>
    <style type="text/css" media="all">
      @import url("scilab_code.css");
      @import url("xml_code.css");
      @import url("c_code.css");
      @import url("style.css");
    </style>
  </head>
  <body>
    <div class="manualnavbar">
    <table width="100%"><tr>
      <td width="30%">
    	<span class="previous"><a href="ld_RTCrossCorr.html">&lt;&lt; ld_RTCrossCorr</a></span>

      </td>
      <td width="40%" class="center">
      	<span class="top"><a href="section_36b3d060978c0411bd31be25049d8d0a.html">basic_ldblocks</a></span>

      </td>
      <td width="30%" class="next">
      	<span class="next"><a href="ld_TrigSwitch1toN.html">ld_TrigSwitch1toN &gt;&gt;</a></span>

      </td>
    </tr></table>
      <hr />
    </div>



    <span class="path"><a href="index.html">ORTD Scilab Interface Toolbox</a> &gt;&gt; <a href="section_36b3d060978c0411bd31be25049d8d0a.html">basic_ldblocks</a> &gt; ld_ReadAsciiFile</span>

    <br /><br />
    <div class="info"></div>

  <div class="refnamediv"><h1 class="refname">ld_ReadAsciiFile</h1>

    <p class="refpurpose"></p></div>

  <div class="refsynopsisdiv"><h3 class="title">Calling Sequence</h3>

    <div class="synopsis"><pre><span class="default">[</span><span class="default">sim</span><span class="default">, </span><span class="default">out</span><span class="default">] = </span><span class="functionid">ld_ReadAsciiFile</span><span class="default">(</span><span class="default">sim</span><span class="default">, </span><span class="default">events</span><span class="default">, </span><span class="default">fname</span><span class="default">, </span><span class="default">veclen</span><span class="default">)</span></pre></div></div>

  <div class="refsection"><h3 class="title">Description</h3>

    <p class="para"><p class="para"></p>
<p class="para">Read data from an ascii-file</p>
<p class="para"></p>
<p class="para">fname - file name (string)</p>
<p class="para">veclen - Size of the vector to read during each time-step</p>
<p class="para">out *(veclen) - Output signal as read from the file</p>
<p class="para"></p>
<p class="para">The data contained in the file must be ascii data divided into rows and columns</p>
<p class="para">as it may be read on Scilab using the command &amp;quot;fscanfMat&#0034;.</p>
<p class="para">The number of columns must be veclen.</p>
<p class="para">For each time-step the respectively next row of data is read from the file and</p>
<p class="para">copied to the block&amp;apos;s output vectorial signal &#0034;out&#0034;</p>
<p class="para"></p>
<p class="para">The file must be available only at runtime.</p>
<p class="para"></p>
<p class="para"></p></p></div>
    <br />

    <div class="manualnavbar">
    <table width="100%">
    <tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr>
<tr>
      <td width="30%">
    	<span class="previous"><a href="ld_RTCrossCorr.html">&lt;&lt; ld_RTCrossCorr</a></span>

      </td>
      <td width="40%" class="center">
      	<span class="top"><a href="section_36b3d060978c0411bd31be25049d8d0a.html">basic_ldblocks</a></span>

      </td>
      <td width="30%" class="next">
      	<span class="next"><a href="ld_TrigSwitch1toN.html">ld_TrigSwitch1toN &gt;&gt;</a></span>

      </td>
    </tr></table>
      <hr />
    </div>
  </body>
</html>
