Using the dpib32.pas library. I'm using the following in a loop to pull all data from a GPIB device buffer in 16 byte chunks until ibsta and EEND are reached.
Receive(0, iIEEE488_PrimaryAddress, buf, 16, STOPend);
I'm finding that when appending buf to my final result I of course end up with some extra characters due to the buffersize setting. Is there a method to determine what ASCii character existed at STOPEnd or the size of the last amount of info I received so I can effectively tring the extra characters from the buffered string?