- 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?
10 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Steven Lord
2023-7-11
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 National Instruments Frame Grabbers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!