Mex-file not being found for Data Translation hardware
48 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Galvani
el 3 de Abr. de 2024
Editada: Rena Berman
el 31 de Oct. de 2024 a las 14:51
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 comentarios
Harald
el 8 de Abr. de 2024
No problem. In case you have not scrolled down, Fausto has investigated the issue and is asking a clarification question.
Respuesta aceptada
Fausto Soares
el 5 de Abr. de 2024
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 comentarios
Fausto Soares
el 8 de Abr. de 2024
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
Más respuestas (3)
Fausto Soares
el 9 de Abr. de 2024
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 comentarios
Rick Zrostlik
el 24 de Oct. de 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
el 24 de Oct. de 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
el 10 de Abr. de 2024
4 comentarios
Harald
el 15 de Abr. de 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
CM
el 16 de Jun. de 2024
Editada: Rena Berman
el 31 de Oct. de 2024 a las 14:51
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:
1 comentario
Rick Zrostlik
el 24 de Oct. de 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
Ver también
Categorías
Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!