While... wend loop
Nikos Konstantinou
nkonstantinou at gmail.com
Wed Dec 12 10:19:37 UTC 2007
Bob and David,
Thanks for your quick reply. I will report back.
Cheers,
N
On 12/11/07, ben robinson <baltimore.ben at gmail.com> wrote:
>
> the Sleep function just causes the script to hang for the duration
> specified by Sleep. Sleep 1000 causes the script to hang for 1000 ms before
> continuing.
> you could accomplish what you're trying to do using Clock.Read . that is,
> if you trust your computer's clock, i guess.
> Do
> Serial.WriteString ...
> While (Clock.Read - LoopStartTime) < LoopDuration
>
> On Dec 11, 2007 1:00 PM, Nikos Konstantinou < nkonstantinou at gmail.com>
> wrote:
>
> > Yes, I do need to repeat Serial.WriteString as many times as possible
> > within the span of one second (or any other time period). What does the
> > sleep function do?
> >
> > Cheers,
> >
> > N
> >
> >
> > On Dec 11, 2007 5:48 PM, ben robinson <baltimore.ben at gmail.com> wrote:
> >
> > > i'm not sure i understand.
> > > could you simply Serial.WriteString a single time, then Sleep 1000?
> > > or do you need to repeatedly call Serial.WriteString as many times as
> > > possible within the span of one second?
> > >
> > > ben
> > >
> > >
> > > On Dec 11, 2007 12:37 PM, Nikos Konstantinou <nkonstantinou at gmail.com>
> > > wrote:
> > >
> > > > Dear E-Prime users,
> > > >
> > > > does anybody know an eprime function equivalent to the MATLAB tic
> > > > toc functions?
> > > >
> > > > I need to create a loop that lasts for 1 second while the
> > > > Serial.WriteString method is called and don't know how!
> > > >
> > > > Below is a code that worked for me but I think there's a better way:
> > > >
> > > > While i <161
> > > > Serial.WriteString EnableRC
> > > > i = i +1
> > > > Wend
> > > >
> > > >
> > > > I would appreciate any responses.
> > > >
> > > > Best
> > > >
> > > > Nikos
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime-unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20071212/67cb6951/attachment.htm>
More information about the Eprime
mailing list