I use VISA to handle socket and GPIB communication.
I recently updated the viRead code I use for VISA-socket communication. Now, I supply the exact 'cnt' or the exact length of characters i expect to be available on the buffer. I used to simply supply the max # of characters possible and rely on visa-timeout to terminate the function call.
My question is what does the 'cnt' parameter do on a viRead call with GPIB communication? With GPIB I had the impression that data read came as a packet. Am I correct?
Secondarily, if partial response strings are possible with GPIB VISA reads, do you have a suggestion on how to minimize or eliminate this scenario?
p.s. My problems with partial response strings from viRead(VISA-sockets), was the genesis for this question.