Mex-file not being found for Data Translation hardware
7 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Harald
2024 年 4 月 8 日
No problem. In case you have not scrolled down, Fausto has investigated the issue and is asking a clarification question.
採用された回答
Fausto Soares
2024 年 4 月 5 日
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 件のコメント
Fausto Soares
2024 年 4 月 8 日
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1663326/image.png)
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
その他の回答 (3 件)
Fausto Soares
2024 年 4 月 9 日
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 件のコメント
Harald
2024 年 4 月 10 日
Since it now seems to be a problem with the installation of the products, please contact Installation Support.
Best wishes,
Harald
Galvani
2024 年 4 月 10 日
4 件のコメント
Harald
2024 年 4 月 15 日
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
CM
2024 年 6 月 16 日
編集済み: CM
2024 年 6 月 16 日
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Acquisition Toolbox Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!