Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a limit of 4096 characters for IBRD?

I am running an application on a Win 3.1.1 machine that requests 2048 samples (each sample using several characters,for example: +.3502E+1) from an oscilloscope. Looking at Log files I made from the application I notice that there are 5 sets of ibrds, 4 containing 4096 character (including spaces between samples) and the last containg 3026 characters. All together there are 4096 "words" (samples). Is this 4096 character limit set by NI, or the application I am using or something other? Thank you for any help you can provide.
0 Kudos
Message 1 of 2
(3,159 Views)
Hi,
I am not aware of any such limitation to ibrd. ibrd function takes a long int representing the number of bytes to read from the GPIB port.

You mentioned that you requested 2048 samples from your device and you returned 4096 samples. Is this the expected behavior?

I would say for now, dig into the code that does this and find out if it is performing an ibrd with 4096 bytes requested.

Best Regards,
Aaron K.
Application Engineer
National Instrument
0 Kudos
Message 2 of 2
(3,159 Views)