Azzera filtri
Azzera filtri

How do I include a specific .dll for the Image Acquisition Toolbox when compiling with Matlab compiler?

3 visualizzazioni (ultimi 30 giorni)
A Little Backstory.. I am trying to develop an app using guide to take pictures. I need to put this on several devices, without installing Matlab on them if possible. The issue I have encountered is that I do not know how to include the pixelinkimaq.dll with the package application.
When using pixelinkimaq.dll you must first register it.
imaqregister(['C:\Program Files\MATLAB\R2016b\toolbox\imaq\imaqadaptors\pixelinkimaq.dll'])
The adapter registers fine and it is completely workable out of Matlab.
Though, it does not tag along so to speak when compiling.
I was hoping someone could help me out
Thanks.

Risposta accettata

Nirav Sharda
Nirav Sharda il 14 Lug 2017
You can add the .dll to the 'mcc' command with the -a flag. Also in the matlab code you will have to modify the location relative to the ctfroot. Here is an example that can be used as a reference.
imaqregister(fullfile(ctfroot,mfilename,'filename.dll'));
Also if you are using 'deploytool' to create the standalone you can add the dll in the files required for your application to run section. Here is a link that talks more about path management in deployed applciations.
I hope this helps.

Più risposte (0)

Categorie

Scopri di più su Application Deployment in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by