Why doesnt deployed .exe application recognize NI as a vendor when using DAQ toolbox?

조회 수: 1 (최근 30일)
I am trying to deploy a standalone application which uses the DAQ toolbox and session-based interface. The compiled program thows an exception on the line:
handles.s = daq.createSession('ni');
with the error message:
The vendor 'ni' is not known. Use 'daq.getVendors()' for a list of vendors.
The application runs fine in Matlab, but will not with MCR.
I have tried running as administrator, as I have read to be one solution, but it did not work for me. I also tried registering the mwnidaq.dll with regsvr32 in the command prompt, as I found that to be another possible solution. However, trying this also yielded an error (The module 'mwnidaq.dll' failed to load./~/The specified module could not be found). The dll file was in three different locations buried in the AppData folder (none of which were in a folder ending in _mcr). I tried all three without success.
I should also mention that the application does not run on the machine on which it was developed nor the deployed machine.
I am using MATLAB R2012b and the program was compiled using the built-in app from the APPS ribbon menu.
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 12월 16일
You might need to install NI drivers on the target device.
Jordan Silverstein
Jordan Silverstein 2013년 12월 17일
편집: Jordan Silverstein 2013년 12월 17일
NI drivers are installed and are working properly on both the development and deployed machines.
The program works fine on the development machine when running Matlab, just not with MCR.
I get the same error on both machines.

댓글을 달려면 로그인하십시오.

채택된 답변

Jordan Silverstein
Jordan Silverstein 2013년 12월 17일
Answered in a previous thread using a patch for version 2012b
note: I had to change the extension of the attachment to .zip and extract the mcc.enc file manually due to administrative/privilege restrictions.
  댓글 수: 2
tel aviv university
tel aviv university 2015년 8월 10일
I have encountered this problem using Matlab2015a. Should I try this work around also?
Mark
Mark 2016년 8월 21일
Hi, I have same problem in 2015 a vai matlab editor, daq works perfect but via exe file The vendor 'ni' is not known do you find any solution for that?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simultaneous and Synchronized Operations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by