Mex-file not being found for Data Translation hardware

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

No problem. In case you have not scrolled down, Fausto has investigated the issue and is asking a clarification question.

Sign in to comment.

 Accepted Answer

Hello @Galvani.
Are you still working with the DT9857E and MATLAB?
I will test MATLAB R2024a with the 'Data Acquisition Toolbox Support Package for Data Translation Hardware' and report back.
Regards,
Fausto
(Note: Your question was posted under the "Test and Measurement - Image Acquisition Toolbox - Image Acquisition Toolbox Supported Hardware - National Instruments Frame Grabbers" category instead of the "Test and Measurement - Data Acquisition Toolbox - Data Acquisition Toolbox Supported Hardware" category. The 'Image Acquisition Toolbox Support Package for Data Translation Frame Grabbers' is a legacy package.)

4 Comments

I installed MATLAB R2024a on a Windows 11 64-bit system that had MATLAB R2023b installed. MATLAB's installation carried the previously installed Add-On Toolboxes into this installation. As a result, I could not reproduce your issue.
Next, I uninstalled the 'Data Acquisition Toolbox Support Package for Data Translation Hardware' via MATLAB's Add-On manager and then restarted my system. Once back into MATLAB R2024a, I installed the 'Data Acquisition Toolbox Support Package for Data Translation Hardware' via MATLAB's Add-On manager. Once again, I could not reproduce your issue; see screen capture below.
Was the Data Translation Open Layers software installed on the target system prior to installing the 'Data Acquisition Toolbox Support Package for Data Translation Hardware' via MATLAB's Add-On manager?
Regards,
Fausto
Thanks for replying
MATLAB R2024a is now running on a Windows 11 64-bit system that previously had MATLAB R2023b installed.
Data Translation Open Layers software(V 7.8.2) was installed on my system before MATLAB 24a got installed and 'Data Acquisition Toolbox Support Package for Data Translation Hardware' via MATLAB's Add-On manager. I even reinstalled Data Translation Open Layers software but the issue still exists although the required support package is installed.
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.'
Maybe i should consider reinstalling MATLAB and all other packages.
Hello @Galvani.
Go ahead and uninstall all MATLAB Add-On packages before uninstalling MATLAB 2024a.
Delete the 'C:\Users\"Username"\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Data Acquisition Toolbox Support Package for Data Translation Hardware' directory.
Uninstall all Data Translation Open Layers software from Windows' Control Panel - Programs and Features.
Restart your system and install Data Translation OMNI v7.8.2. (Unzip the download file before installing.)
Install MATLAB 2024a.
Install MATLAB's Data Acquisition Toolbox via the Add-On Manager.
Install 'Data Acquisition Toolbox Support Package for Data Translation Hardware' via Add-On manager.
Close MATLAB and verify only v7.8.2 for Data Translation Open Layers applications are listed in the Windows' Control Panel - Programs and Features. If that is not the case, then please send a screen capture of all the listed Data Translation applications and their versions.
If no other version besides v7.8.2 for 'Data Translation Open Layers' is present, then launch MATLAB.
Retest an example with the DT device.
If you continue to have an issue, reply with screen captures of the commands and errors, including 'daqvendorlist', 'daqlist', and 'ver'. (Remove any sensitive information.)
Regards,
Fausto
I follow all these steps yesterday but the problem still arose.
Here are some screenshots of commands. I guess i won't be able to test the device since the Mex-files are not found. 'Data Acquisition Toolbox Support Package for Data Translation Hardware' was installed via Add-On manager but is listed as 'not operationnal'.
The error message is the same as previously. I'll have access to the DT device tomorrow, so i'll make some tests.
Best regards,
Galvani

Sign in to comment.

More Answers (4)

Hello @Galvani.
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

Thanks for your reply.
I was also supprised that no matter what i tried, it was not possible to install the 'ni', 'mcc' or 'diligent' add-on this end up in an error message. It is just confusing!
I hope i may received any further suggestion to fix this.
Best,
Galvani
Since it now seems to be a problem with the installation of the products, please contact Installation Support.
Best wishes,
Harald
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
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

Sign in to comment.

Thank you for the suggestion. I'll contact them.
Best,
Galvani

4 Comments

I was facing the same issue. The issue is resolved after rolling back to Matlab 2023b.
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
Thank you for your concern!

Sign in to comment.

CM
CM on 16 Jun 2024
Edited: Rena Berman on 31 Oct 2024
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

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
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.

Sign in to comment.

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

Products

Release

R2024a

Asked:

on 3 Apr 2024

Commented:

CM
on 27 Feb 2025

Community Treasure Hunt

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

Start Hunting!