Jump to content

Question

Posted (edited)

Hello,

I have a DT9837C and a DT9857E and would like to interface these using MATLAB, Python or at least something that is not QuickDAQ. I tried to follow the documentation "Data Acquisition Toolbox -> Get started" but it only leads me to the following result:

Quote

>> daqvendorlist

ans =

  1×4 table

     ID               FullName              AdaptorVersion      DriverVersion  
    ____    ____________________________    ______________    _________________

    "ni"    {'National Instruments(TM)'}    "4.3 (R2021a)"    "20.0.0 NI-DAQmx"

 

>> d = daqlist("mcc")


d =

  0×0 empty table

I am using MATLAB R2021a with DAQ Toolbox 4.3. The DOT (DT9837C) is shown in the device manager as "DT9837a", driver version is 7.0.0.9. However, MATLAB seems to struggle finding it. What am I doing wrong?

What other possibilities are there to interface the DT9837C/9857E?

Kind regards,
Domme

Edited by Domme
more info

9 answers to this question

Recommended Posts

  • 0
Posted

Hello @Domme.

There is no Python support for the Data Translation products other than using the DT9837A, DT9837B, and DT9837C with Measurement Computing's UL for Linux.

https://digilent.com/reference/software/universal-library/linux/start

That said, both the DT9837C and DT9857E devices are supported in MATLAB, using the 'Data Acquisition Toolbox Support Package for Data Translation Hardware'.  Use MATLAB's Add-On Manager to search for and install this support package. 

image.png

 

image.png

 

image.png

Note, the target system will need to have Data Translation's OMNI software (Open Layers) already installed.

https://files.digilent.com/#downloads/DTSoftware/Omni-CD/

 

Next, close the Add-On Manager and enter ‘ver’ in the Command Window.  The result should list your version of MATLAB and the 'Data Acquisition Toolbox'.

image.png

 

Next, enter ‘v = daq.getVendors’ or 'v = daqvendorlist' in the Command Window.  MATLAB should return ‘dt’ as a vendor.

image.png

 

image.png

 

Next, enter ‘d = daq.getDevices’ and MATLAB will return a list of installed Data Translation devices.  (Users can also enter 'd = daqlist("dt")' as shown in the previous image.)

image.png

 

You are now ready to begin developing your application in MATLAB.  Press the F1 key to reference MATLAB’s Help.  You can then search MATLAB’s documentation and/or the Data Acquisition Toolbox documentation.

image.png

 

------------------

Other helpful links:

Data Translation DAQ Adaptor for MATLAB user manual (UMDAQAdaptor.pdf)

https://files.digilent.com/manuals/UMDAQAdaptor.pdf

Data Acquisition Toolbox Support Package for Data Translation Hardware, in MATLAB Central File Exchange.
https://www.mathworks.com/matlabcentral/fileexchange/60618-data-acquisition-toolbox-support-package-for-data-translation-hardware

 

Regards,

Fausto

  • 0
Posted (edited)

Hi Fausto,

thank you very much for your comprehensive answer. I thought installing the DAQ Toolbox would do the trick but now it works fine :-)

Kind regards,
Domme

Edited by Domme
  • 0
Posted (edited)

Following the instructions in the linked document "UMDAQAdaptor.pdf" I encountered a new problem: When trying to perform an output operation -as described on page 31- I receive the following error:

Quote

 

queueOutputData(s,outputSignal1);

File not found:C:\Program Files\matlab2021a\toolbox\daq\daqsdk\bin\win64\daqmlconverter.dll

 

Am I missing another package or does this have to do with the combination of my software versions? And how can I fix this? I don't want to download the missing DLL from a sketchy untrusty source. Even if I wanted to, I don't have admin rights on my workplace machine so I would need to ask our admin to copy it and he will most likely demand a DLL from a trusted source.

Kind regards,
Domme

Edited by Domme
  • 0
Posted

In your MATLAB 'Add-On Manager', please verify the installed packages includes 'Data Acquisition Toolbox' and 'Data Acquisition Toolbox Support Package for Data Translation Hardware'.

Which DT device are you using?

Are you only using MATLAB R2021a on that system?

Please verify that the 'daqmlconverter.dll' file is in the C:\Program Files\matlab2021a\toolbox\daq\daqsdk\bin\win64\' folder.

  • 0
Posted (edited)
13 hours ago, Fausto said:

In your MATLAB 'Add-On Manager', please verify the installed packages includes 'Data Acquisition Toolbox' and 'Data Acquisition Toolbox Support Package for Data Translation Hardware'.

Which DT device are you using?

Are you only using MATLAB R2021a on that system?

Please verify that the 'daqmlconverter.dll' file is in the C:\Program Files\matlab2021a\toolbox\daq\daqsdk\bin\win64\' folder.

Hello Fausto,

thanks for your answer.

  • Both add-ons appear in the Add-On Manager (Version 4.3 and 1.1, respectively).
  • I am using a DT9837C right now. I also have a DT9857E but I think the missing DLL will be a problem there as well.
  • There is only one installation of MATLAB R2021a on this system.
  • The DLL is missing from that directory. Where can I get it from?

Kind regards,
Domme

Edited by Domme
  • 0
Posted

Hello @Domme.

The 'daqmlconverter.dll' file is part of MATLAB's Data Acquisition Toolbox.  Please try reinstalling that package.  You may need to contact MathWorks Technical Support if the reinstallation does not save the file to that folder.

Regards,

Fausto

  • 0
Posted

Hello Fausto,

I tried the following:

  • Copying the 'daqmlconverter.dll' from another MATLAB installation into the directory which is being referred to in the error message. I get the same error message.
  • Complete reinstall of MATLAB and all neccessary add-ons as described in your recent post. I now do have a genuine 'daqmlconverter.dll' in the directory, but I still get the same error message.
  • Running the script on the machine where I borrowed the DLL from did do the trick and lead me to another error. This could be fixed with some adjustments to internal addon .m files which you described here.

Still baffled why it won't work on my machine. I really need to get it running on this machine as well.

Kind regards,
Domme

  • 0
Posted

Hello Domme.

Here's some additional information that might help you. 

With the release of MATLAB R2021a, the daqmlconverter.dll and daqasyncio.dll files were not included.  If a user attempts to run an example that uses a Data Translation data acquisition device, with MATLAB R2021a, then MATLAB will report a 'file not found' error.

In order to resolve this error, exit MATLAB and download the attached 'Files_for_MATLAB_R2021a.zip' file to the target system with MATLAB R2021a.  Extract the two files (daqmlconverter.dll and daqasyncio.dll) from the zip file to the 'C:\Program Files\MATLAB\R2021a\toolbox\daq\daqsdk\bin\win64' directory.  Afterwards, open MATLAB again and continue to use your example file with the Data Translation device.

Files_for_MATLAB_R2021a.zip

The other option is to upgrade to the latest release of MATLAB.

Regards,

Fausto

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...