Clear Filters
Clear Filters

Mex-file not being found for Data Translation hardware

27 views (last 30 days)
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
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.

Sign in to comment.

Accepted Answer

Fausto Soares
Fausto Soares on 5 Apr 2024
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
Fausto Soares
Fausto Soares on 8 Apr 2024
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
Galvani
Galvani on 9 Apr 2024
Edited: Galvani on 9 Apr 2024
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 (3)

Fausto Soares
Fausto Soares on 9 Apr 2024
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
  2 Comments
Galvani
Galvani on 9 Apr 2024
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
Harald
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

Sign in to comment.


Galvani
Galvani on 10 Apr 2024
Thank you for the suggestion. I'll contact them.
Best,
Galvani
  4 Comments
Harald
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

Sign in to comment.


CM
CM on 16 Jun 2024
Edited: CM on 16 Jun 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:
https://au.mathworks.com/matlabcentral/answers/1693530-error-when-trying-to-start-acquisition-from-data-translation-device

Categories

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

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!