1. What operating system are you using? This can make a significant difference. Linux is much easier than other operating systems for interfacing to instrumentation than other operating systems, essentially because you read and write to a comm port (RS 232 or other) exactly like you read and write a file.<div>
2. What instrument are you trying to read? Do you have adequate documentation on the software interface for the instrument? Not all Modbus instruments are truly standards-consistent- many manufacturers "customize" their implementation of the Modbus standard.</div>
<div>3. Are you communicating with the instrumentation outside of Scilab? Most instrumentation manufacturers provide software for accessing their instruments, with proprietary drivers which make it extremely difficult to use the instrumentation with other software. I never understood the logic of this approach, but it is a fact of life.</div>
<div><br></div><div>First step is to determine if your issue is with communcations, or with interfacing to Scilab.</div><div><br></div><div>If you are using Linux, the first step would be to insure you are communicating with the instrument. You will need the following information:</div>
<div><br></div><div> -Port ID</div><div> -Port parameters (baud rate, data bits, parity, number of stop bits, handshake protocol)</div><div> -Instrumentation command set (this assumes a query/response interface- write a query command to the instrument and read the</div>
<div> return message)</div><div><br></div><div>To establish communications with the instrumentation, I have found two Linux tools quite useful: sjinn (<a href="http://sjinn.sourceforge.net/">http://sjinn.sourceforge.net/</a>), a command line tool very simple to use for simple logging tasks; CuteCom (<a href="http://cutecom.sourceforge.net/">http://cutecom.sourceforge.net/</a>) which provides a very intuitive GUI interface for working with serial interfaces (similar to but more user friendly than Microsoft's Terminal program); and qtDMM (<a href="http://www.mtoussaint.de/qtdmm.html">http://www.mtoussaint.de/qtdmm.html</a>), a stand-alone GUI for reading a number of different digital multimeters.</div>
<div><br></div><div>Once you are sure you have communications with the instrumentation, you should have all the tools necessary in the Serial Communications Toolbox to implement the communications protocol from within Scilab (or you have the option of calling an external</div>
<div>tool from within Scilab based on these other tools).</div><div><br></div><div>Charlie</div><div> </div><div><br><br><div class="gmail_quote">On Sat, Apr 7, 2012 at 6:32 AM, Samuel Gougeon <span dir="ltr"><<a href="mailto:sgougeon@free.fr">sgougeon@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
Hello<br>
<br>
Le 12/03/2012 16:56, mahesh parmar a écrit :
<blockquote type="cite">
<div style="font-size:12pt;font-family:times new roman,new york,times,serif">
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt">Respected
sir,</div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br>
</div>
<div><font face="'times new roman', 'new york', times, serif" size="3">I
am working in Final year </font><font face="'times new roman', 'new york', times, serif">Bachelor</font><font face="'times new roman', 'new york', times, serif" size="3"> of
Engineering in Electronics & Communication Field,</font></div>
<div><font face="'times new roman', 'new york', times, serif" size="3">I
study about SCILAB and Doing my final project on SCILAB</font></div>
<div><font face="'times new roman', 'new york', times, serif" size="3">My
project on Data Acquisitions in SCILAB using Modbus on RS-232</font></div>
<div><font face="'times new roman', 'new york', times, serif">But i
can't access Data from hardware to SCILAB</font></div>
</div>
</blockquote>
Why not? You should have a look at these resources:<br>
<a href="http://atoms.scilab.org/categories/instruments_control" target="_blank">http://atoms.scilab.org/categories/instruments_control</a><br>
<br>
<blockquote type="cite">
<div style="font-size:12pt;font-family:times new roman,new york,times,serif">
<div><font face="'times new roman', 'new york', times, serif">and
there is trouble in interfacing between SCILAB and ATmega16 Controller</font></div>
</div>
</blockquote>
Examples of Scilab drivers are implemented there (with serial):<br>
<a href="http://fileexchange.scilab.org/categories/instruments_control" target="_blank">http://fileexchange.scilab.org/categories/instruments_control</a><br>
<br>
Regards<br>
S. Gougeon<br>
<br>
</div>
</blockquote></div><br></div>