controling instruments through gpib



Hi everybody

i'm trying to use a USB/GPIB converter (Agilent 82357A) to control an
oscilloscope (HP/Agilent 54645D) from MatLab (Win2K SP4, MatLab7
R14SP2). I do not have the instrument Control Toolbox, so I tried the
gpib.dll that I downloaded from the MathWorks' file exchange site (http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=216&objectType=file).

Now some functions work ok (like gpib('find','gpib0'); )
but the recommended version ('dev') returns a 'No GPIB Board'
(iberr=7). If I try using the ud returned by 'find', subsequent 'clr'
command returns an unknown error code (iberr=23), 'wrt' and 'rd'
return 'Address error' (iberr=3), but 'pad', 'sad', and 'onl'
commands seem to work.

I'm not sure if this makes sense (and I'm not sure if this is the
correct place to ask), but if anyone has experience using this dll
and has encountered/solved this kind of problem I'd be very glad to
get some help.

thanks
mathieu
.



Relevant Pages

  • Re: How to do NI-488.2 programming using GPIB Matl
    ... successfully open, initialize, set transfer mode, and write command ... I would recommend Instrument Control Toolbox for the task. ... Instrument Control Toolbox provides driver for LeCroy 8600a that can ...
    (comp.soft-sys.matlab)
  • Re: controling instruments through gpib
    ... I do not have the instrument Control Toolbox, ... I can confirm that MATLAB does support GPIB and Agilent instruments when you ...
    (comp.soft-sys.matlab)
  • Re: Adding gpib support to Matlab on Linux ?
    ... Sebastian Held wrote: ... > We did this by directly calling libvisa.so using the calllibcommand ... > (because we don't have a license to use Instrument Control Toolbox). ...
    (comp.soft-sys.matlab)