From the FBtoC Help viewer:
Thus changing the "2" parameter to a "1" would, to my understanding,
return events for each tick.
This section of the FBtoC Help ("Adapting your code for FBtoC") is
very handy btw.
Regards,
Dan
On 27 Mar 2012, at 14:02, Spencer Ted wrote:
> To catch serial data coming in, it seems necessary to do this:
>
> Poke Long Event -8,2 // emulates old behavior
>
> do
> handleevents
> fn GetAnalogues
> until gFBQuit
>
> The "Poke" line was shamelessly stolen from an FB example and, I
> assume, causes the fn within the "Do" loop to be encountered, which
> it obviously isn't, these days, with out the "Poke". If you follow me.
>
> Need we know something about the -8 and the 2 in the Long Event?
> Presumably one or the other has something to do with how often that
> embedded fn gets called...
>
> Is there some better way for the serial port - or, indeed, any other
> - fn to be called fairly regularly?
>
> ted
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to: http://freegroups.net/groups/futurebasic/
>
Attachments: