MATLAB: Can’t I use the Keysight instrument with Data Acquisition Toolbox

Data Acquisition Toolbox

I am trying to control a Keysight U2331a with MATLAB (R2020a). I am able to send text commands to the device using Instrument Control Toolbox, but I would also like to read data from the device using Data Acquisition Toolbox. When I try to find available hardware and receive the following error:
>> d=daq.getDevices
d =
No data acquisition devices available.
Click here for a list of known vendors.
Click here for troubleshooting tips.
Why isn't this device recognized by Data Acquisition Toolbox, and how do I resolve this issue?

Best Answer

The reason that you are unable to connect to your device using these commands is that these commands are for our Data Acquisition Toolbox (DAQ), for which Keysight instruments are only supported in the 32-bit version of MATLAB (and DAQ). For more information, see the following MathWorks support page for DAQ:
If you wish to control this instrument and read data from it with your current MATLAB installation (R2020a), you can do so using Instrument Control Toolbox. The following documentation pages provide information about how to read data from this device using Instrument Control Toolbox:
Keysight Instruments and MATLAB: General Information/Getting Started
VISA (USB) Communication for Instrument Control Toolbox: Functions