Linux is easier for me. This happens to be very similar to a project I am working on, except I am using a usb port with a Metrix meter. I suspect usb (or, even better, RS232) would be easier than ethernet.<div><br></div>
<div>The reason Linux is easier than Windows is that Linux sees everything as a file. To read from and write to a port is the same thing as reading from and writing to a file.</div><div><br></div><div>The first thing to do is identify the address of the Anritsu meter. For my usb port, it is /dev/ttyUSB0. I am not all that familiar with ethernet ports, but I suspect you will have something in your /dev folder that looks like "eth0". I suspect the Anritsu meter may have a built-in address, but you will have to consult the Anritsu documentation to determine this. This could get complicated if you have the Anritsu plugged in to an ethernet with multiple devices on it- you still need to get the address. For usb this is pretty easy- lsusb from the command line, or simply open the /dev folder and unplug the device (the port goes away) and plug it back in (the port reappears). </div>
<div><br></div><div>SCPI typically exchanges ASCII strings- send a command to the device and receive a string in response. You will need to know the commands required by the Anritsu meter. You will need to know something about the format of the response string- number of characters, any terminal characters (like a line feed) that can identify the end of the response string.</div>
<div><br></div><div>Once you have this information, start with the command line. Something like "echo R > /dev/ethO" might work out of the box, but you have to insure that you have read/write permission with the dev in question.</div>
<div><br></div><div>Once you start getting information from the command line, you know you have good communications with the instrument, and you can write a script in Scilab that will record the readings. However, you will have to parse the readings and convert to numerical format before you can use the readings for something like plotting...</div>
<div><br></div><div>This is just a rough outline on how to get data from an instrument. Unfortunately "Standards" are anything but standard.<br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 12:17 PM, computidoo <span dir="ltr"><<a href="mailto:ychattah@iai.co.il">ychattah@iai.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="RTL">
<p class="MsoNormal" dir="LTR"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I'm flexible windows or Linux(red hat)<u></u><u></u></span></font></p>
<p class="MsoNormal" dir="LTR"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<div>
<div class="MsoNormal" align="center" dir="LTR" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal" dir="LTR"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> Charles Warner [via Scilab
/ Xcos - Mailing Lists Archives] [mailto:<a href="mailto:ml-node%2B" target="_blank">ml-node+</a><a href="http://user/SendEmail.jtp?type=node&node=3781406&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>]
<br>
<b><span style="font-weight:bold">Sent:</span></b> Monday, February 27, 2012 7:15 PM<br>
<b><span style="font-weight:bold">To:</span></b> Yehonatan Chattah<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: instrument measurments</span></font><u></u><u></u></p>
</div><div class="im">
<p class="MsoNormal" dir="LTR"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<p class="MsoNormal" dir="LTR"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">What operating system are you using?<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal" dir="LTR"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
</div><div>
<p class="MsoNormal" dir="LTR" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Charlie<u></u><u></u></span></font></p>
<div><div class="im">
<p class="MsoNormal" dir="LTR"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On Mon, Feb 27, 2012 at 12:00 PM, computidoo <<a href="http://user/SendEmail.jtp?type=node&node=3781401&i=0" link="external" rel="nofollow" target="_blank">[hidden email]</a>> wrote:<u></u><u></u></span></font></p>
</div><p class="MsoNormal" dir="LTR" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"></span></font></p><div class="im"><font size="3" face="Times New Roman">hello,<br>
I want to connect the scilab to control instrument measurments that have LAN<br>
connection and can work in SCPI commands format (anritsu).<br>
can someone help me where to start?<br>
BR<br>
computidoo<br>
<br>
--<br>
View this message in context: <a href="http://mailinglists.scilab.org/instrument-measurments-tp3781355p3781355.html" link="external" rel="nofollow" target="_blank">
http://mailinglists.scilab.org/instrument-measurments-tp3781355p3781355.html</a><br>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.<br>
<br>
--<br>
To unsubscribe from this mailing-list, please send an empty mail to<br>
</font></div><font size="3" face="Times New Roman"><a href="http://user/SendEmail.jtp?type=node&node=3781401&i=1" link="external" rel="nofollow" target="_blank">[hidden email]</a><div class="im"><br>
To check the archives of this mailing list, see<br>
<a href="http://mailinglists.scilab.org/" link="external" rel="nofollow" target="_blank">http://mailinglists.scilab.org/</a><br>
<br>
<u></u><u></u></div></font><p></p>
</div>
<p class="MsoNormal" dir="LTR"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<p class="MsoNormal" dir="LTR" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div class="MsoNormal" align="center" dir="LTR" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="1" width="100%" noshade color="#cccccc" align="center">
</span></font></div>
<div>
<div>
<p class="MsoNormal" dir="LTR"><b><font size="1" color="#444444" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:#444444;font-weight:bold">If you reply to this email, your message will be added to the discussion below:<u></u><u></u></span></font></b></p>
</div>
<p class="MsoNormal" dir="LTR"><font size="1" color="#444444" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:#444444"><a href="http://mailinglists.scilab.org/instrument-measurments-tp3781355p3781401.html" rel="nofollow" link="external" target="_blank">http://mailinglists.scilab.org/instrument-measurments-tp3781355p3781401.html</a>
<u></u><u></u></span></font></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" dir="LTR" style="line-height:18.0pt"><font size="1" color="#666666" face="Tahoma"><span style="font-size:8.5pt;font-family:Tahoma;color:#666666">To unsubscribe from instrument measurments,
<a rel="nofollow" link="external">
click here</a>.<br>
<a href="http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" link="external" target="_blank"><font size="1" face="Times New Roman"><span style="font-size:7.0pt;font-family:"Times New Roman"">NAML</span></font></a>
<u></u><u></u></span></font></p>
</div>
</div>
<div style="FONT-SIZE:9pt;FONT-FAMILY:Courier New">***********************************************************************************************</div>
<div style="FONT-SIZE:9pt;FONT-FAMILY:Courier New"> </div>
<div style="FONT-SIZE:9pt;FONT-FAMILY:Courier New"><strong><font size="3">
<font color="forestgreen">
<font>Please consider the environment before printing this emai</font>l</font>
</font></strong></div>
<div style="FONT-SIZE:9pt;FONT-FAMILY:Courier New"> </div>
<div style="FONT-SIZE:9pt;FONT-FAMILY:Courier New">The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof.</div>
<div style="FONT-SIZE:9pt;FONT-FAMILY:Courier New">If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. </div>
<div style="FONT-SIZE:9pt;FONT-FAMILY:Courier New">Thank you.</div>
<br><hr align="left" width="300">
View this message in context: <a href="http://mailinglists.scilab.org/instrument-measurments-tp3781355p3781406.html" target="_blank">RE: instrument measurments</a><div class="HOEnZb"><div class="h5"><br>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html" target="_blank">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br></div></div></blockquote>
</div><br></div>