Hi Bonehomme,
after you have initialized the serial port you are able to send and receive data. If you send data to a system and then enter a loop to check how much bytes you have received you will get an increasing number from Bytes at Serial Port.
You are sending data to a system with Serial Write. After that your system needs some time to read the data and create an answer. Also it takes some time to transfer the data back to your PC (at 9600 Baud it needs 1 millisecond per byte). Meanwhile your program enters the loop and checks how much data has been received until now. Dependig on the timings it could be that you will see 19 bytes and on the next iteration 27.
Bytes at Serial Port cannot drop any bytes, because it gives you only the number of byte
s you have received.
If you are using the VISA serial functions and do binary serial transfer you have also to disable the termination character handling.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions