Does NI-DAQ support standalone deployment?

조회 수: 13 (최근 30일)
Dave
Dave 2015년 3월 16일
답변: Sam Walder 2019년 2월 18일
So, here's the issue I'm having:
I've written and tested a GUI that reads from an NI USB-6009 adapter. This program works on my Windows 7 PC, with MATLAB both 2015A and 2014B, and I've installed the NI-DAQmx 14.0 driver.
The problem is, it's not working on the laptop that I ultimately have to deploy the application to. I compiled the GUI on my PC, and then installed it and the MCR on the laptop (running Windows 7), and the same NI-DAQmx 14.0 driver as well.
When I run the GUI as a standalone on my PC, it still works. But it doesn't even detect NI as a vendor when I try to run the standalone on the laptop, even though NI-MAX and Windows both detect the USB-6009 device. So, my question is, is there any incompatibility with the MCR and DAQ toolboxes that would cause this?
  댓글 수: 1
Dave
Dave 2015년 3월 16일
Addendum: Both computers running x64 architecture.

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

답변 (3개)

muhammet balcilar
muhammet balcilar 2015년 11월 13일
편집: muhammet balcilar 2015년 11월 15일
i had the same problem and i didnot solve with Matla2015, but i solved with using Matlab2014a. But Matlab 2014a had an other problem. First of all you have to comment out line 61 to line 65 in MATLAB\R2014a\toolbox\daq\daq\+daq\+ni\AnalogInputVoltageChannel.m file. it must be
% Set the Coupling
%[status] = daq.ni.NIDAQmx.DAQmxSetAICoupling(...
% taskHandle,...
% obj.PhysicalChannel,...
% daq.ni.utility.DAQToNI(obj.CouplingInfo));
%daq.ni.utility.throwOrWarnOnStatus(status);
and then you have to compile all your code again with Matlab2014a. It will work.

Sagar Patil
Sagar Patil 2017년 10월 13일
Hi there,
I am trying to get NI DAQ support in my standalone application as well but not able to do so, not even with standalone deployed in my PC with MATLAB installed. Do we have to add any additional files during application compiler?
Please help!
  댓글 수: 1
Sagar Patil
Sagar Patil 2017년 10월 13일
편집: Sagar Patil 2017년 10월 13일
Ohh...wait...I just included the whole "daq" folder into my additional fiels during compilation from the folder below and was able to read from DAQ with my standalone application. Below is the folder location:
C:\Program Files\MATLAB\R2017a\toolbox\daq\daq
Is this the way to do it or am I including lot of files? Please let me know. Appreciate your help!

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


Sam Walder
Sam Walder 2019년 2월 18일
I had the same issue in my application - the DAQ would connect and work in the full Matlab environment, but not in the compiled application. I resolved the issue by making sure to update everything in NI MAX on both the development and deployment machines. I am not sure why this was an issue - but it fixed it for me.
It may be useful to note that there are some similar questions on this topic on the forum:

카테고리

Help CenterFile Exchange에서 Hardware Discovery and Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by