- the support package is installed
- your code has a direct dependency on the support package
- your code is dependent on the base product of the support package
- your code is dependent on at least one of the files listed as a dependency in the mcc.xml file of the support package, and the base product of the support package is MATLAB
How do I implement installation of the NI-DAQmx support package in a compiled application?
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am working in MATLAB 2022b and am trying to build an application that uses a USB-6501 National Instruments DAQ. As expected, everything worked on my development computer, but then didn't work on the deployment computer. I ended up just installing MATLAB on the deployment computer and installing the NI-DAQmx support package, but how would I install the support package through the compiled application?
Things that I've tried:
- Selecting the support package in the Application Compiler - That support package isn't listed.
- Attempted to add files per this answer - The "daq" folder is in the MATLAB root folder and can't be added, and there is no NI-DAQmx folder in the Add-Ons folder
0 commentaires
Réponses (1)
Steven Lord
le 11 Juil 2023
Based on this page and given what you said in your first bullet, that the support package isn't listed in Application Compiler, I wonder if one of the criteria listed on that page is not satisfied.
Are you trying to load an object that uses the support package in your application, without having any direct and obvious (to the dependency analyzer) calls to support package functionality? [That's the second bullet above.] If so I'd probably try to use one of the workarounds in the "Fixing Callback Problems: Missing Functions" section of this documentation page, as this workflow is described by the Tip in that section of that documentation page.
If that doesn't work, as a diagnostic step to try to determine if this is a problem with the dependency analysis or with the support package, can you try the command line compilation command (the last section on the page to which I linked in my first sentence) with the support package you're trying to include explicitly added using the -a option?
2 commentaires
Voir également
Catégories
En savoir plus sur National Instruments Frame Grabbers dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!