10-29-2008 01:59 PM
What GPIB device are you using? Can you communicate with the GPIB device in Measurement & Automation Explorer? You need the NI-488.2 driver for NI GPIB devices.
10-29-2008 05:36 PM
I´m using a national instrument gpib-usb, i have the driver installed, and I can communicate with my instrument but I cannot guard information. I need to guard information in the memory of my instrument (osa) and after to read them for plot them in matlab or to guard them directament in matlab, you know how I must do it?
10-30-2008 02:07 PM
Thanks for letting me know that everything works in Measurement & Automation Explorer. Check the programming manual for your instrument to see how you can guard information in memory. Also, you might want to contact Mathworks at firstname.lastname@example.org for help programming in Matlab.
11-14-2008 01:21 PM
I have the GPIB-USB-HS (NI )driver installed on my 32 bit Linux box. I'm trying to communicate with a spectrum analyzer, and my linux box recognizes the device, but I cannot access the device through Matlab. I keep getting the error "The Specified Adaptor could not be found".
I'm looking for a dll or .mdd file that will allow me to use my Agilent 8753ES in Matlab, through linux. Anybody know where I can find these?
09-26-2011 05:09 PM
I am trying to connect an HP 4195A Network/Spectrum analyzer to Matlab using the NI GPIB-USB-HS interface. I have downloaded NI-488.2 driver and am able to successfully communicate with the instrument. However, I am unable to communicate with the instrument using matlab. When I enter
>> instrhwinfo('gpib', 'ni');
I get the following error
??? Error using ==> instrhwinfo at 234
Specified ADAPTOR was not found or could not be loaded.
Where can I download this adaptor? It seems like I need a National Instruments driver for matlab (.mdd file) , but I can't seem to locate one. I'd greatly appreciate it if someone could point me towards one. I know this is very similar to another question, but the response simply points back to the same thread and does not address the question.
02-13-2012 12:21 PM
Sorry for digging up an old post but I can't figure out how to make a new thread...
I am trying to control the Agilent 89090A via GPIB-USB-HS using MatLab ...
I am trying to help my University save $50,000 of hardware upgrade! I am trying to communicate with this device (Agilent 89090A) and I have a little success so far. I just need to know how to send commands to it via MatLab.
This is what I have so far:
s = gpib('ni', 0, 0) fopen(s) fprintf(s,'on') out = fscanf(s) input('Press Enter to Continue')
I am able to sucessfully communicate with the GPIB device and turned on its port.
When I do
>> instrhwinfo(s) ans = AdaptorDllName: [1x87 char] AdaptorDllVersion: 'Version 3.0.0' AdaptorName: 'NI' VendorDllName: 'gpib-32.dll' VendorDriverDescription: 'NI-488'
But when I try to turn on Remote Control for the Agilent device I get an error:
Error using icinterface/fprintf (line 147) GPIB: NI: GPIB board is not Controller-In-Charge and is not properly addressing itself. Error in Test2 (line 3) fprintf(s,'on')
Is that the wrong command or what?
This is the manual for the Agilent device:
REM – Remote Parameter [ on | off ] Reply [ on | off ] <CR> <LF and EOI> Description This instruction is used to switch remote mode on and off. With REM ON the temperature control unit is set in a remote mode. In this remote state the keyboard is disabled for all inputs (only the UP , DOWN , and CLEAR keys are accepted). The ENTER key is only accepted within the remote function context, that is to change the display for system and main functions and to reset remote to off. However, the function REMOTE ON, which is selected, can be used to reset to REMOTE OFF instead of using the REM OFF command, (see also “Remote Mode” on page 88). Reply Description The REM instruction without parameters returns a string which represents the current state of the temperature control unit: on = remote mode off = normal mode See “CSM – Agilent ChemStation Mode” on page 98 for interpreting the reply when using the CSM command.
Any help would be greatly appreciated!
02-14-2012 10:31 AM
Since you're able to communicate with the device using certain commands, we know that the NI GPIB-USB Controller is working properly. When it comes to specifying commands in MATLAB, you may find this information helpful. You may also want to consider contacting Mathworks at email@example.com for help programming in MATLAB. Hope this helps!
02-14-2012 01:49 PM
Thanks for the reply.
When I try communicating with the device via NI's Measurement and Automation I get this error:
iberr = EABO EABO indicates that an I/O operation has been canceled, usually due to a timeout condition after a GPIB read. Before reading from the instrument, verify that the GPIB command you are sending is understood by your device and instructs it to place data in its output buffer. For information on your device's command syntax, consult the instrument manufacturer's user documentation.
How do I get around it? here are some screenshots - Again the Device that I'm trying to connect to is the Agilent 89090A