As I said in my original post, I've tried reading the port every 10 msec...
at 9600baud, I should see at most 10 characters... and when I see no
characters at the port, I should have a gap...
Too bad it doesn't work !
I don't seem to be getting more than 10 characters, it's just that I'm
dropping lots of characters... messages that require two consecutive 10 msec
reads seem to be lost... I have the feeling Windows will not let me access a
serial port that rapidly...
Can anyone explain exactly how the LabView Receive Buffer affects actual
reads from the LabView Serial Port driver (serpdrv) and from the actual
Windows serial port driver SERIAL.vxd, SERIALUI.dll and VCOMM.vxd ???
And is there a problem with switching rapidly between a real Operating
Sys
tem function call (like these Serial Port Reads) and the actual LabView
Application (In UNIX, I believe it's called a context switch between Kernel
Mode and User Mode, I just don't know if the same problem exists under
Windows.)
Thanks,
Bill
PdB_Serenity_nl wrote in message
news:506500000005000000C67C0000-1021771306000@exchange.ni.com...
> Detecting gaps is easy by number of bytes at port.vi. Check the number
> of bytes at a high sampling-rate. If the number stays the same for a
> certain time, you have a gap in between the messages.
>
> Patrick de Boevere