04-24-2007 04:54 PM
04-25-2007 06:45 AM - edited 04-25-2007 06:45 AM
When you read the bytes at port in your read vi, you should tie that to the number of bytes to read for each of your three reads. Since you generate the data in your write vi, maybe you should pass the values that are in return count, return coumt 2 and return count 3 to the read vi. Then it will read just the right amount in each of the three reads.
I can't try it because I don't have the hardware setup, but since the write and read are on two computers -- you probably need to pass the return count information through the serial port also. Maybe do that first and then start sending the data.
Hope this helps.
Tom
I should mention that in the read vi having the byte count be the same for all three reads is not going to work in this application. To generate the same data in the read vi, the amount read of each type needs to match the amount created in the write vi. In the example you sent the read count would be -- 8, 16 and 800, respectively.
Message Edited by Tom Haggerty on 04-25-2007 07:49 AM