--- In "Don W. Carr" <> wrote:
>
> Just use the nanosleep() system call to sleep until the next
interval. You
> can fix it to sleep slightly less time to make up for the time you spend
> reading the IO and printing it to standard output, thus the average time
> will be almost exactly the 5 seconds you want, but each one could
vary by
> tens of milliseconds. I can give you some code that figures out how
long you
> spent processing, displaying, etc, and then calculate the next sleep
time if
> you want.
If you cna send me the code it will be great help to me.
thanks
sonia
>
> On 11/16/06, soniathakur3 <> wrote:
> >
> > --- In <ts-7000%40yahoogroups.com>, "Don W.
> > Carr" <doncarr@> wrote:
> > >
> > > Of course the simplest of all is to just open a terminal on the
> > TS7xxx with
> > > ssh or telnet, and then run your program that reads the values
every 5
> > > seconds and prints them to standart out.
> >
> > For this i will need to configure the timer. How can i do that for
> > this board?
> >
> > sonia
> >
> > >
> > > On 11/16/06, Yan Seiner <yan@> wrote:
> > > >
> > > > --- In
<ts-7000%40yahoogroups.com><ts-7000%40yahoogro
> > ups.com>,
> > > > "soniathakur3" <soniathakur3@> wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I have TS7200 board, I need to send data to PC from the
board after
> > > > > every 5 secs. This data is the data i collect from the external
> > > > > ADC.Now, i have ADC working ,but dont have any idea of how to
> > display
> > > > > it on PC through ethernet port after every 5 secs.
> > > > >
> > > > > What all do i need to do?
> > > > >
> > > >
> > > > On the TS7200 side, build or install netcat. Then use nc to
send the
> > > > data to the application on the PC side.
> > > >
> > > > If your PC is running linux, then either run netcat on the
port full
> > > > time, or simply run a script like "cat - >> /tmp/data.log" via
inetd
> > > > on the appropriate port.
> > > >
> > > > QED..... :-)
> > > >
> > > > --Yan
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Dr. Don W. Carr
> > > J. G. Montenegro 2258
> > > Guadalajara, Mexico
> > > +52-333-630-0704
> > > +52-333-836-4500 ext 2930
> > >
> >
> >
> >
>
>
>
> --
> Dr. Don W. Carr
> J. G. Montenegro 2258
> Guadalajara, Mexico
> +52-333-630-0704
> +52-333-836-4500 ext 2930
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|