How to solve ADALM1000 not seen by Matlab?

Hello,
I've been trying to use the ADALM1000 so first I plugged it, I downloaded Zadig which installed WinUSB driver.
But the thing is I want to use Matlab to control the device. So I installed the Data Acquisition ToolBox in Matlab. But my device is not seen by Matlab ( by using daq.getDevices).
When I try to type "daq.createSession('adi')" it says :"The vendor 'adi' is not known. Use 'daq.getVendors()' for a list of vendors."
So I type "daq.getVendors" and I get:
Number of vendors: 2
index ID Operational Comment
----- --- ----------- ------------------------
1 adi true Analog Devices Inc.
2 ni false Click here for more info
I ask for properties and I get:
ID: 'adi'
FullName: 'Analog Devices Inc.'
AdaptorVersion: '3.8 (R2015b)'
DriverVersion: '1.0'
IsOperational: true
ID: 'ni'
FullName: 'National Instruments'
AdaptorVersion: '3.8 (R2015b)'
DriverVersion: 'unknown'
IsOperational: false
I don't understand why my Device is not seen by Matlab when the driver is considered operational.
I had problems too when I installed the toolbox, it said I hadn't the rights and I needed to change PATH. I changed my folder and redownloaded the toolbox and it worked. Don't know if it may be an issue.
Is the problem due to the fact that I need another driver for Matlab, or do I need to change the firmware, or did I miss a step in the installation? Thank you.

6 件のコメント

Walter Roberson
Walter Roberson 2015 年 11 月 20 日
As an experiment, get the properties and for the first vendor extract the ID field and add 0 to the string. Adding 0 will show the byte codes corresponding to the characters. There is a chance that there is a 4th character or that what looks like 'adi' might be some slightly different characters.
Tony
Tony 2015 年 11 月 20 日
編集済み: Tony 2015 年 11 月 20 日
Hello, I extracted the ID field by :
f=daq.getVendors
f(1,1).ID
then I tried to add 0 with :
strcat(f(1,1).ID,'0')
It gave me: adi0
So 'adi' is the right name to call? Actually, when I type
daq.getDevices
I get :
ans = No data acquisition devices available.
Thanks.
Walter Roberson
Walter Roberson 2015 年 11 月 20 日
I mean f(1,1).ID + 0 -- that is, add the number 0. Or equivalently,
double(f(1,1).ID)
Tony
Tony 2015 年 11 月 20 日
I get ans =97 100 105 which is adi in ASCII. So it's not the problem I think. I think it comes from here:
daq.getDevice
=> ans = No data acquisition devices available
Tony
Tony 2015 年 11 月 20 日
Isn't this weird that when I install the toolbox, it creates a folder directly in a C://MATLAB//SupportPackages and not in my C://Program Files (x86)//MATLAB ?
Vinod
Vinod 2015 年 11 月 25 日
That is by design. Support packages get installed under C:\MATLAB\SupportPackages.

サインインしてコメントする。

 採用された回答

Vinod
Vinod 2015 年 11 月 24 日
編集済み: Vinod 2015 年 11 月 28 日

0 投票

You need the latest firmware of the device as the old firmware has very serious bugs and is unsupported in MATLAB.
Could you update the firmware and try again?

その他の回答 (1 件)

Tony
Tony 2015 年 12 月 1 日

0 投票

Thank you, it works well. I have an other question though: I know the ADALM1000 can put on of its I/O in the high impedance mode, how can I do that with the Toolbox? Thanks.

1 件のコメント

Vinod
Vinod 2015 年 12 月 6 日
The toolbox abstracts away details. When you are measuring voltage without generating a current the ADALM1000 device is automatically set into high impedance mode.
Perhaps if you describe your application or use case someone can recommend the appropriate workflow.

サインインしてコメントする。

カテゴリ

質問済み:

2015 年 11 月 20 日

コメント済み:

2015 年 12 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by