Delay while reading data though com port..

Archives Forums/Blitz3D Bug Reports/Delay while reading data though com port..

spiff(Posted 2005) [#1]
While reading data through the serial port, there is a delay in the program. There's a delay when i try to print the data on the screen and when i try to use graphical features such as ovals. Could anyone offer some suggestions? here is some of my code.....
//------------------------------------------------------
Global serial$,comport
Graphics 511, 511, 0, 0

comport=OpenFile("com1:115200,N,8,1")

Repeat

aline$=ReadLine(comport)
//this is where the delay occurs
Print aline$
Until KeyHit(1)
//--------------------------------------------------------


Yan(Posted 2005) [#2]
.


Damien Sturdy(Posted 2005) [#3]

comport=OpenFile("com1:115200,N,8,1")



What the hecks that!?


jfk EO-11110(Posted 2005) [#4]
Seems like you never used MSDOS then :) com1 is an msdos device name and redirects a port stream to a file handle. com1 is the serial port. There are more funky devices, such as "NUL", "CON" etc. It's even part of the Qbasic Docs.

Maybe the usage of them will force the system to be paused because probably they cannot be executed in multithreading mode. I's also likely windows will become kind of messed up because they're so old and the support of it may be limited.

In other words: I don't know :)


Damien Sturdy(Posted 2005) [#5]
Lol, i know what it is, i just didnt expect it to work in Blitz. Hell, i didnt even try it :D
BTW,

That post was months old!


Crazidemon(Posted 2005) [#6]
Hmmm, what is the 115200? Is that the Baud rate? If so, could I try and receive data from an electronic chip, transmitting at 2400 Baud? What are the other numbers?

Grant