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 个评论
采纳的回答
Jordan Silverstein
2013-12-17
2 个评论
tel aviv university
2015-8-10
I have encountered this problem using Matlab2015a. Should I try this work around also?
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 Center 和 File Exchange 中查找有关 Simultaneous and Synchronized Operations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!