06-05-2009 07:56 AM
Solved! Go to Solution.
06-05-2009 08:32 AM
06-05-2009 10:57 AM
Chri=s=tophe wrote:
Hello,
But in the real working, I will don't know the size of the data to receive from the sensor.(<500 bytes)
One method to read an unknown number of bytes: Put just the Bytes at Port into the while loop (not the read). Put the output of Bytes at Port into a shift register, and compare the last iteration with the current one. When the number stops changing (current loop = last loop) then all bytes have arrived. Bail out of the while loop then directly to VISA Read.
06-16-2009 03:38 AM
Thank you Broken Arrow!
It's working very well.