Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #1 
hi all,
i'm setting up a new monkeylogic computer i have installed 2 NI PCI-6229 boards as well as the NI-DAQmx software (V15.1.0f2). the devices are detected in NI-MAX but in matlab,

>> daqhwinfo

ans =

ToolboxName: 'Data Acquisition Toolbox'
ToolboxVersion: '2.18 (R2011a)'
MATLABVersion: '7.12 (R2011a)'
InstalledAdaptors: {'winsound'}



the computer is running MATLAB Version 7.12 (R2011a) and the following toolboxes. 

Data Acquisition Toolbox Version 2.18 (R2011a)
Image Processing Toolbox Version 7.2 (R2011a)
Optimization Toolbox Version 6.0 (R2011a)
Signal Processing Toolbox Version 6.15 (R2011a)
Statistics Toolbox Version 7.5 (R2011a)
Symbolic Math Toolbox Version 5.6 (R2011a)
Wavelet Toolbox Version 4.7 (R2011a)

i'm convinced it's a driver issue but does anyone have a suggestion to resolve this?

0
Wael.Asaad

Administrator
Registered:
Posts: 51
Reply with quote  #2 
Did you try running Matlab with administrator privileges and using the "daqregister" command?
0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #3 
hi,
i am logged in to the PC as administrator and i just tried the "daqregister" command

daqregister('nidaq')

ans =

Unable to load adaptor: C:\Program Files (x86)\MATLAB\R2011a\toolbox\daq\daq\private\mwnidaq.dll.
Driver files or DLL for the specified adaptor could not be found or are not installed.


0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #4 
i searched for mwnidaq.dll and it was located in the directory noted in the error message 

0
maloman

Junior Member
Registered:
Posts: 15
Reply with quote  #5 
The following might help, install a newer Matlab 32 bit and DAQ register there. Grab the dlls and put them into your 2011 if that's what you would like to use.
Matlab will complain that it's using drivers from the wrong place every time you open monkeylogic but you can ignore that.
VoilĂ 

Jan
0
maloman

Junior Member
Registered:
Posts: 15
Reply with quote  #6 
One more thing!! Matlab can be finicky of the order of installation. install NI driver first! Then Matlab! This might also solve your problem easier.
0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #7 
@maloman, thanks for the suggestions. i tried both of them. ininstalled and reinstalled NI-Max and matlab (2011a) in the order you suggested. still getting the same error. 

installed matlab 2015a grabbed the dlls from the toolbox. still getting the same error.
0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #8 
soooo... the data acquisition toolbox works fine in Matlab 2015a (32 bit) and i launched the monkeylogic gui. none of the devices are detected by monkey logic. 

<<< MonkeyLogic >>> Revision Date: 4-05-2014 build 1.0.26
<<< MonkeyLogic >>> Operating System: Windows_NT...
<<< MonkeyLogic >>> *** JAVA Virtual Machine is Running ***
<<< MonkeyLogic >>> Computer Name: ALBERT...
<<< MonkeyLogic >>> Logged in as "Xiaomo"...
<<< MonkeyLogic >>> Detected 8 "x86" processors...
<<< MonkeyLogic >>> Matlab version: 8.5.0.197613 (R2015a)...
<<< MonkeyLogic >>> Approximate Matlab cycle rate is 1898 kHz
<<< MonkeyLogic >>> Launching Menu...
<<< MonkeyLogic >>> Initialized DirectX / OpenGL interface...
<<< MonkeyLogic >>> Initialized Task Menu...
<<< MonkeyLogic >>> Warning: Found only 1 video device...
<<< MonkeyLogic >>> Initialized Video Menu...
<<< MonkeyLogic >>> Initialized Control-Screen Menu...
<<< MonkeyLogic >>> Gathering I/O board info...
<<< MonkeyLogic >>> DAQ Toolbox Version: Data Acquisition Toolbox 3.7 (R2015a)
<<< MonkeyLogic >>> DAQ Driver Version: National Instruments 15.1.0 NI-DAQmx
<<< MonkeyLogic >>> Found 1 I/O adaptors:
... 1) winsound (Not Connected)
<<< MonkeyLogic >>> Warning: no duplicate DAQ boards found for Analog Input duplication...
<<< MonkeyLogic >>> Initialized I/O Menu...
<<< MonkeyLogic >>> Initialized drop-down menus...
<<< MonkeyLogic >>> Ready.

0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #9 
hi,
thanks for the suggestions. apparently "run as administrator" and logged in as administrator are 2 different things. it is fixed.

Thanks!
0
Edward

Administrator
Registered:
Posts: 260
Reply with quote  #10 
hi,

one last thing... to "run as administrator" you right click on the matlab icon and choose from the context menu this option. Matlab will start as usual and then type daqregister('nidaq') at the command line. Note you only need to do this once when you first install matlab.

Thanks!
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.