<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<STYLE id=owaParaStyle type=text/css></STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19258"></HEAD>
<BODY>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2 face=Arial>For
question 2, you can use Scilab real-time functions. For example in your
initialisation code include</FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2 face=Arial><PRE style="FONT-STYLE: normal; FONT-FAMILY: Monospaced; FONT-SIZE: 14px"><SPAN style="COLOR: rgb(50,185,185)">realtimeinit</SPAN> <SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(188,143,143)">0.001</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN>
<SPAN style="COLOR: rgb(50,185,185)">realtime</SPAN> <SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(188,143,143)">0</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN></PRE></FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2 face=Arial>Then
inside your loop include (where Delay is required loop time in
ms)</FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2 face=Arial><PRE style="FONT-STYLE: normal; FONT-FAMILY: Monospaced; FONT-SIZE: 14px"><SPAN style="COLOR: rgb(50,185,185)">realtime</SPAN> <SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(0,0,0)">Delay</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN>
<SPAN style="COLOR: rgb(50,185,185)">realtimeinit</SPAN> <SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(188,143,143)">0.001</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN>
<SPAN style="COLOR: rgb(50,185,185)">realtime</SPAN> <SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(188,143,143)">0</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN></PRE></FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2 face=Arial>I have
used this successfully in the past. There is more info in Scilab's help
(see under realtime).</FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial>HTH,</FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial>Mike.</FONT></SPAN></DIV>
<DIV><SPAN class=734011308-11072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV dir=ltr class=OutlookMessageHeader align=left><FONT size=2
face=Tahoma>-----Original Message-----<BR><B>From:</B> HAYDER WILLIAMS YANDUN
PINZA [mailto:hayder_wil.yandun@uao.edu.co]<BR><B>Sent:</B> 11 July 2012
00:25<BR><B>To:</B> ,; ,<BR><B>Subject:</B> [scilab-Users] A Question about
Scilab<BR><B>Importance:</B> High<BR><BR></FONT></DIV>
<DIV
style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 10pt">
<DIV>Hello, Good Afternoon</DIV>
<DIV><BR></DIV>
<DIV>My name is Jaider Yandun, actually i'm studying electronic engineering
and i'm developing a prototype of a DAQ (Data Acquisition) Card with a
uController and an ADC (Analog-Digital converter). the uController is a PIC
18F4550, this micro controller has USB comunication, the questions are</DIV>
<DIV><BR></DIV>
<DIV>1. Scilab has a library or a module to work with USB protocol (read a USB
device), if its true, are those libraries or modules compatibles with linux
and windows?</DIV>
<DIV><BR></DIV>
<DIV>2. With scilab, Can i do timed tasks ?, for example each 100ms read a USB
device</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>because, I need catch the data with the Ucontroller to after send
to Scilab through usb.</DIV>
<DIV><BR></DIV>
<DIV>please i need a tutorial or information about how to do it</DIV>
<DIV><BR></DIV>
<DIV>please Help me,</DIV>
<DIV><BR></DIV>
<DIV>Thanks very much for you attention,</DIV></DIV><IMG size="1" NOSEND="1">
La información contenida en este correo electrónico y en todos sus archivos
anexos es confidencial y privilegiada, y no necesariamente trasmite el
pensamiento o convicciones de la Universidad Autónoma de Occidente. Si por
algún motivo recibe esta comunicación y usted no es el destinatario
autorizado, sírvase borrarlo de inmediato, notificarle de su error a la
persona que lo envió y abstenerse de divulgar su contenido y anexos, ya que
esta información solo puede ser utilizada por la persona a quien está
dirigida. Está prohibido cualquier uso inadecuado de esta información, así
como la generación de copias de este mensaje. <A></A>
<P align=left color="#000000" avgcert??>No virus found in this
message.<BR>Checked by AVG - <A
href="http://www.avg.com">www.avg.com</A><BR>Version: 2012.0.2195 / Virus
Database: 2437/5123 - Release Date: 07/10/12</P></BLOCKQUOTE></BODY></HTML>