Prev: reshaping matrix
Next: reshaping matrix
From: Mark on 2 May 2010 07:23 "Ankit Desai" <adesai.nospam(a)mathworks.com> wrote in message <grl2n5$14p$1(a)fred.mathworks.com>... > "Pierangelo " <pierangelo.bolognini(a)it.abb.com> wrote in message <grkcpt$roo$1(a)fred.mathworks.com>... > > Hi all, > > I'm using MATLAB to acquire data from instruments by GPIB interface. > > What is the maximum dimension for the gpib InputBufferSize? > > I need about 64KB but it seems that it works only until 8KB... > > > > Anybody knows why? > > Thank you very much > > Hi Pierangelo, > > I am guessing you created a GPIB object using Instrument Control Toolbox: > > gpibObj = gpib(<vendor>, <boardID> , <primary address>); > > At this state you should be able to increase the input buffer size by: > > gpibObj.InputBufferSize = 100000; > > And open it: > > fopen(gpibObj); > > I do not encounter any issue making inputbuffersize to 64KB. > > You can find more details at: > > http://www.mathworks.com/access/helpdesk/help/toolbox/instrument/f13-42284.html > > Hope this helps > > -Ankit Could anyone tell me what the effect is of increasing the (output)buffersize on the data flow? I don't suppose I can increase it without sacrifice... I'm actually using USB via a virtual COM, but the idea remains the same I suppose.
From: Ankit Desai on 3 May 2010 22:25 "Mark " <markmatlab(a)gmail.com> wrote in message <hrjnao$co0$1(a)fred.mathworks.com>... > "Ankit Desai" <adesai.nospam(a)mathworks.com> wrote in message <grl2n5$14p$1(a)fred.mathworks.com>... > > "Pierangelo " <pierangelo.bolognini(a)it.abb.com> wrote in message <grkcpt$roo$1(a)fred.mathworks.com>... > > > Hi all, > > > I'm using MATLAB to acquire data from instruments by GPIB interface. > > > What is the maximum dimension for the gpib InputBufferSize? > > > I need about 64KB but it seems that it works only until 8KB... > > > > > > Anybody knows why? > > > Thank you very much > > > > Hi Pierangelo, > > > > I am guessing you created a GPIB object using Instrument Control Toolbox: > > > > gpibObj = gpib(<vendor>, <boardID> , <primary address>); > > > > At this state you should be able to increase the input buffer size by: > > > > gpibObj.InputBufferSize = 100000; > > > > And open it: > > > > fopen(gpibObj); > > > > I do not encounter any issue making inputbuffersize to 64KB. > > > > You can find more details at: > > > > http://www.mathworks.com/access/helpdesk/help/toolbox/instrument/f13-42284.html > > > > Hope this helps > > > > -Ankit > > Could anyone tell me what the effect is of increasing the (output)buffersize on the data flow? I don't suppose I can increase it without sacrifice... > I'm actually using USB via a virtual COM, but the idea remains the same I suppose. Hi Mark, Increasing the outputbuffersize allows you to send (using fwrite and/or fprintf) larger data size. While increasing the inputbuffersize allows you to receive (using fread and/or fscanf) larger data size. Hope this helps, -Ankit
|
Pages: 1 Prev: reshaping matrix Next: reshaping matrix |