01-03-2008 01:21 AM
01-03-2008 02:12 AM
01-03-2008 06:06 AM - edited 01-03-2008 06:07 AM
I agree with Graziano -- please post your code. The "bytes to read" should not be a control, it should be a property node. See below. The reference input to this property node should be the comm port you are reading.
Tom
01-03-2008 07:08 AM - edited 01-03-2008 07:09 AM
01-03-2008 07:19 AM
Thanks Graziano. You are right. This means that there might be a delay in the serial read. If you specify 64 bytes to read and there are not 64 bytes at the port to be read, it will wait until there are 64 bytes before it completes. If you change the control while it is still waiting for the 64 bytes to read from the last "request" it will read the 64 bytes and then start reading 24 with the next read.
This is one of several scenarios that could be occurring. Without knowing the specific application, this is my best guess!
If you want to seperate the data coming in from the serial port, it would probably be better to read all (or if it is streaming) a fixed amount of data all the time and splitting up the data by another method after you have it read.
I hope this helps!
Tom
01-03-2008 08:23 AM
01-03-2008 11:22 PM