Why am I unable to deploy an application compiled with MATLAB Compiler 4.5 (R2006b) that uses Data Acquisition Toolbox functionality?

1 view (last 30 days)
I have the following code that I wish to compile into a standalone application:
function dioTest
dio = digitalio('mcc',0)
When I compile and run the application on my development machine, it works as expected. However, when I move the component to a machine that only has the MATLAB Component Runtime (MCR) libraries installed, I receive the following error:
C:\work\dioTest
??? Error using ==> digitalio.digitalio
Error using ==> digitalio.digitalio>localCreateDigitalIOObject
Failure to open requested data acquisition device: mcc.
The specified module could not be found.
Error in ==> dioTest at 2
daq:digitalio:unexpected

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
An attempt is made to register Data Acquisition Toolbox adaptor DLLs the first time the application is executed. In order for the registration to succeed you need to have administrative privileges. On Windows Vista with UAC enabled, this means you also need to run the application as administrator.
The MATLAB Component Runtime (MCR) does not automatically register the required adaptor DLLs used by Data Acquisition Toolbox during installation.
To work around this issue, you either need to run the application as administrator one time, or perform the following steps on the deployment machine:
1. Execute the application once to expand the CTF archive. This will create a folder called dioTest_mcr for this example.
2. Open the Windows command prompt.
3. Navigate to the dioTest_mcr\toolbox\daq\daq\private directory.
4. Register the mwmcc.dll (or equivalent adaptor DLL required by your hardware) by entering the following command:
regsvr32 mwmcc.dll

More Answers (0)

Categories

Find more on Application Deployment in Help Center and File Exchange

Products


Release

R2006b

Community Treasure Hunt

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

Start Hunting!