Serial Import, no Nulls?
Sarah
sarahr at genesearch.com.au
Sun Aug 3 22:41:01 EDT 2003
Hi Richard,
If you look at the script in the "Open Serial Port" button in my stack,
you will see the following line:
open file thePort for text update
Try changing this to:
open file thePort for binary update
I haven't tried reading any data with nulls but this would be my best
guess on how to fix the problem.
Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/
On Sunday, August 3, 2003, at 09:14 pm, mail at richard-hillen.de wrote:
> Hello list,
>
> I try to get data from a measurement-device (Windows 98, RunRev 2.0.2.)
> using the serial port Com1.
>
> If I send "S" over the serial port, the device respond sending 20 byte
> in
> the Range 0 .. 255.
>
> Using Sarahs helpfull example-stack I tried to get them with "read from
> file com1 for 20".
> Looking at "it" there were less than 20 chars, the bytes with value 0
> were
> missing.
>
> Any Ideas, how to get _all_ 20 bytes?
>
> Thanx in advance
>
> Richard Hillen.
More information about the use-livecode
mailing list