According to the link below, beginning with R2016a, the Keysight data acquisition hardware is not supported by Data Acquisition Toolbox anymore. Since the existing adapters are 32-bit only and beginning with R2016a MATLAB is no longer available on 32-bit systems:
However, since the U2500A series supports IVI-COM, we could connect and use your hardware with the Instrument Control Toolbox.
To setup your machine, please refer to the 'Requirements to work with MATLAB section' in the link below:
To be short, here are a few things you have to install:
As for the workflow of manipulating your hardware through the Instrument Control Toolbox, please refer to the link below (“IVI Driver” page for Instrument Control Toolbox) for a detailed documentation of all the functions we have:- For this particular Keysight driver, since we know the name of the driver, you should still be able to create the MATLAB instrument driver using this command:
makemid('AgU254x', 'AgU254x.mdd')
- When you create the device object, for the second argument, which is the hardware resource name, you could find it in the Keysight Connection Expert software, it should be under the “VISA Address” when you choose your target hardware.
- For what to pass into the functions (e.g., “get”, “set” and “invoke”), you could refer to the MDD file generated by “makemid”.
- To be more specific. Once you open the MDD file, expand the “group”, you will see the different sub-objects under the device object. To use those objects, for example, suppose your device object is named “icd” and you want to use the “Analoginacquisition” group, you could pass in “icd.Analoginacquisition” as the first argument of the “get” or “invoke” function. As for the other arguments required by the “get” and “invoke” functions, you can just use the name of the properties or functions under this “Analoginacquisition” group. For example, to get the value of “Buffer_Size” under this group, the command should look like:
get(icd.analoginacquisition, 'Buffer_Size')