Hi all,
is there a Maximum message length for GPIB Messages?
I didn't find any Information on this but when I pass a buffer that has a length of 10k to ibrd, the Driver sometimes doesn't receive data any more. What happens is that all messages are received from the Instrument, but the data is either all 0's or all FF's - even when checking the responce in NI Spy). Sending data is fine. I can check the data leaving the Instrument and it is correct. When I reduce the size of the buffer that I pass to ibrd() to 2k it all works fine.
char readBuffer1[10000+1]; // leave extra space for /0
char readBuffer2[2000+1]; // leave extra space for /0
ibrd ( deviceDescriptor1, readBuffer1, 10000); // this sometimes goes wrong
ibrd ( deviceDescriptor2, readBuffer2, 2000); // this works
Yours,
Marc.