Invalid Message ID Format: ' ' with NiDaq?

8 views (last 30 days)
Hello,
I'm using the NiDaq toolbox with MATLAB 2020A. I have verified that the NiDAQ box is connected to my laptop and is detected by MATLAB using daqvendorlist and daqlist as shown below:
daqvendorlist
ans =
1×4 table
ID FullName AdaptorVersion DriverVersion
____ ____________________________ ______________ _________________
"ni" {'National Instruments(TM)'} "4.1 (R2020a)" "20.0.0 NI-DAQmx"
>> daqlist
ans =
1×5 table
VendorID DeviceID Description Model DeviceInfo
________ ________ ___________________________________ __________ _______________________
"ni" "Dev2" "National Instruments(TM) USB-6008" "USB-6008" [1×1 daq.ni.DeviceInfo]
However, as per the documentation if I try to use the daq function to create a DataAcquisition object I get the following error:
>> s = daq("ni")
Invalid Message ID format: ''.
I'm unsure of what the error actually means. The syntax is as listed in the documentation. Thanks

Accepted Answer

iwantrugs
iwantrugs on 3 Mar 2021
It turns out that the driver version of my NiDAQ is only supported on 2020B and not 2020A. Updating solved the issue, in case anyone has a similar problem.

More Answers (0)

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!