Mex-file not being found for Data Translation hardware
Show older comments
Hey everyone,
i recently move from MATLAB R2023b to MATLAB R2024a and must reinstall some package again.
So i reinstall Data Acquisition Toolbox and Data Acquisition Support Package for Data Translation to pursue a project i'm working on.
Everything was working fine on the previous MATLAB version but now for any try to acquire a signal for example, i receive the following error message:
'The required MEX file to communicate with Data Translation hardware could not be loaded.
The attempt gave the Error ID of MATLAB:mex:ErrInvalidMEXFile and the message
Invalid MEX-file 'C:\Users\"Username"\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Data Acquisition Toolbox Support Package for Data Translation Hardware\adaptor\win64\mexOldaApi.mexw64': Das angegebene Modul wurde nicht gefunden.'
reads the indicated modul ist not found. But this file mexOldaApi.mexw64 is precisely there.
I checked the vendors available and found out that 'dt' is set as not to be operational although the drivers are installed in MATLAB and both MATLAB and the computer have been reset.
Thanks for your suggestions to fix this.
Best regards,
Galvani
3 Comments
Harald
on 5 Apr 2024
Hi,
perhaps the author of Data Acquisition Support Package for Data Translation, @Fausto Soares can help.
Best wishes,
Harald
Galvani
on 8 Apr 2024
Harald
on 8 Apr 2024
No problem. In case you have not scrolled down, Fausto has investigated the issue and is asking a clarification question.
Accepted Answer
More Answers (4)
Fausto Soares
on 9 Apr 2024
0 votes
Thank you for the screen captures. You may have an issue with your MATLAB and/or the Data Acquisition Toolbox installation. I noticed in your Daq2.png screen capture that all third-party vendors were listed as 'Not Operational'. The 'ni' vendor is a default of MATLAB's Data Acquisition Toolbox installation, so even if you did not install the Data Translation add-on, the 'ni' add-on should appear as 'National Instruments™'; see my previous screen capture with 'daqvendorlist'.
@Harald Can you investigate why the 'ni' third-party vendor is listed as 'Not Operational'? This is outside of my support scope. Resolving that issue may be the key to resolving the other vendors.
Regards,
Fausto
4 Comments
Galvani
on 9 Apr 2024
Harald
on 10 Apr 2024
Since it now seems to be a problem with the installation of the products, please contact Installation Support.
Best wishes,
Harald
Rick Zrostlik
on 24 Oct 2024
FYI for others reviewing this thread:
I see the same 'Not operational" comment with "ni" initially. Once I installed the "Data Acquisition Toolbox Support Package for National Instruments NI-DAQmx Devices", then issuing the daqvendorlist command returns the adaptor version and driver version as expected. Installing the 3rd part libraries as part of the support package install was required. So, not sure if the NI stuff is 'default' for DAQ toolbox.
Regards,
Rick
Rick Zrostlik
on 24 Oct 2024
I should have mentioned in my previous comment that I was using:
Windows 11
Matlab R2024b
Data Acquisition Toolbox version 24.2
Data Translation Open Layers v7.8.2
Rick
Galvani
on 10 Apr 2024
0 votes
4 Comments
Zijun Chen
on 15 Apr 2024
Edited: Zijun Chen
on 15 Apr 2024
I was facing the same issue. The issue is resolved after rolling back to Matlab 2023b.
Galvani
on 15 Apr 2024
Harald
on 15 Apr 2024
Hi Galvani,
sorry that our Technical Support team has not addressed your inquiry yet. If it is an urgent matter for you, please consider calling them. To identify local phone numbers, please navigate to https://www.mathworks.com/support/contact_us.html and choose the preferred country.
Best wishes,
Harald
Galvani
on 18 Apr 2024
CM
on 16 Jun 2024
Edited: Rena Berman
on 31 Oct 2024
0 votes
I am having similar issues. Has this been resolved yet?
Background:
I was previously using R2023a and DataAcqOMNI_V7.8.9. I am using a DT9837A.
I got a new Windows 11 PC and installed R2024a and DataAcqOMNI_V7.8.9. I installed every add-on available during installation. I got the same error as Galvani, except that NI and directsound hardware worked fine.
I followed Fausto's instructions above (except I installed the DAQ toolbox at the same time as matlab). I used his version of DataAcqOMNI_V7.8.2. That did not fix it. I uninstalled every toolbox via the toolbox manager, which was a pain. So now I am doing the minimum possible install.
I then tried out R2023b. I got no response at all to daqlist. Then I realised the QucikDAQ was not recognising the harware either. I tried reverting to version 8.9. No fix.
Then I tried downloadloading QuickDAQ 3.7.0.46. This made me install .NET framework 3.5. No fix. Not sure if that is a red herring.
Then I tried version 8.9 again. This seemed to work. daqlist recognised the DT hardware.
I then tried installing R2024a again but had the same problem as Galvani again, so went back to R2023b. DataAcqOMNI_V7.8.2 does nto work. I have to use DataAcqOMNI_V7.8.9 and make Fausto's changes from here:
2 Comments
Rick Zrostlik
on 24 Oct 2024
Hello @CM
Was there any resolution to your issue?
I am having similar issues with a DT9847 - both the QuickDAQ does not recognize the DT board, nor do I get any entries in the table when I issue the daqlist command. I am using v7.8.2 (my understanding is that 7.8.9 had a known analog output bug (see: https://forum.digilent.com/topic/26265-dt9847-2-2-matlab-operation/?do=findComment&comment=78783)
Windows 11
Matlab Version 24.2 (R2024b)
DT Open Layers v7.8.2
Regards,
Rick
CM
on 27 Feb 2025
Hi Rick, I didn;t see your question last year. There has been no resolution. I am still using the workaround described above - use matlab version 2023b (or earlier probably works), DataAcqOMNI_V7.8.9, and make the fixes from the link.
Christian
on 27 Feb 2025
0 votes
Hi,
for me installing the 'Data Translation Open Layers' Tool v7.8.2 from the link above solved the problem. After restart my dt device was detected by matlab 2022b in connection with the available dt toolboxes.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
