Filter löschen
Filter löschen

How to use Instrument Control Toolbox to install MATLAB driver for my Keysight oscilloscope MSOS404A?

12 Ansichten (letzte 30 Tage)
Hi,
I've been trying to connect to my MSOS404A using the Intstrument Control Toolbox. From my understandind, I should have the driver by default in the "AgInfiniium" MATLABdriver. However, I don't see the package driver listed.
driverList = ividriverlist

Antworten (1)

Simar
Simar am 14 Mär. 2024
Bearbeitet: Simar am 14 Mär. 2024
Hi Nicolas,
I understand that you are unable to locate specific driver package ("AgInfiniium") while establishing a connection to Keysight MSOS404A oscilloscope using MATLABs Instrument Control Toolbox. Follow the steps to troubleshoot and resolve the issue:
1.Check for the Latest Instrument Control Toolbox and Driver Updates: Ensure that MATLAB and Instrument Control Toolbox are up to date. Use matlabRelease command to check MATLAB version and version of Instrument Control Toolbox.
2.Install or update the IVI Driver: Instrument Control Toolbox relies on IVI drivers to communicate with instruments. If "AgInfiniium" driver package is not listed, manually install or update IVI driver for oscilloscope. Visit Keysight website to download the latest IVI driver for the MSOS404A oscilloscope- https://www.keysight.com/us/en/home.html
3.Refresh Driver List in MATLAB: After installing or updating IVI driver, refresh MATLAB's list of available drivers. Restart MATLAB to ensure it reloads the driver information. Run ividriverlist command again to see if the "AgInfiniium" driver package now appears in the list.
4.Manually Specify the Driver: If the driver still does not appear in the list, try manually specifying the driver when creating the instrument object. One needs full path to the drivers .mdd file.
% Example syntax for manually specifying the driver
driverPath = 'C:\path\to\your\driver\AgInfiniium.mdd';
scope = icdevice(driverPath, 'YourResourceString');
Replace 'YourResourceString' with the appropriate resource string for your oscilloscope, such as 'TCPIP0::192.168.1.100::inst0::INSTR' for a network-connected instrument.
5.Use SCPI Commands Over VISA: If still having trouble using the IVI driver, remember that many oscilloscopes, including Keysight models, can be controlled using SCPI commands over a VISA interface. This method is more universal and does not rely on specific drivers.
% Example of creating a VISA object and opening the connection
visaObj = visa('AGILENT', 'TCPIP0::192.168.1.100::inst0::INSTR');
fopen(visaObj);
% Example SCPI command to query the instrument's identity
fprintf(visaObj, '*IDN?');
idn = fscanf(visaObj);
% Close the connection when done
fclose(visaObj);
delete(visaObj);
clear visaObj;
Please refer to the following documentation links for more information-
Hope it helps!
Best Regards,
Simar

Produkte


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by