Prev: NUMERICAL ANALYSIS MAKING FUNCTION TAYLOR EXPANSİON (e^X)
Next: GA Constrained Function from Simulink
From: Apu on 29 Jan 2010 18:10 I'm trying to migrate from nidaq to nidaqmx. Typing: daqregister('c:\Program Files\MATLAB\R2009a\toolbox\daq\daq\private\mwnidaqmx.dll') results in: 'nidaqmx.dll' not found. Make sure it is on the MATLAB path. This does not appear to be the administrator-access issue referred to in other threads. Please help. Below is the output from running daqsupport: ----------General Information ---------- Current Time & Date: 29-Jan-2010 15:06:23 Operating System: Microsoft Windows XP [Version 5.1.2600] Hardware Configuration: x86 Family 15 Model 11 Stepping 2, AuthenticAMD The measured CPU speed is 2009 MHz RAM is 1919 MB Swap space is 3812 MB PROCESSOR_ARCHITECTURE = x86 PROCESSOR_ARCHITEW6432 = undefined MATLAB version: 7.8.0.347 (R2009a) Data Acquisition Toolbox version: Name: 'Data Acquisition Toolbox' Version: '2.14' Release: '(R2009a)' Date: '15-Jan-2009' MATLAB License Number: 256556 ----------Memory Information: ---------- MemoryLoad: 45 TotalPhys: 2.0124e+009 AvailPhys: 1.0899e+009 TotalPageFile: 3.9975e+009 AvailPageFile: 3.2287e+009 TotalVirtual: 2.1474e+009 AvailVirtual: 1.5429e+009 UsedDaq: 0 ----------MATLAB root directory: ---------- C:\Program Files\MATLAB\R2009a ----------Data Acquisition Toolbox directory: ---------- c:\program files\matlab\r2009a\toolbox\daq ----------Available hardware: ---------- ToolboxName: 'Data Acquisition Toolbox' ToolboxVersion: '2.14 (R2009a)' MATLABVersion: '7.8 (R2009a)' InstalledAdaptors: {3x1 cell} ----------Adaptor List ---------- 'nidaq' 'parallel' 'winsound' ----------nidaq adaptor: ---------- ----------Registering adaptor: nidaq ---------- Successfully registered nidaq adaptor ----------Adaptor Information for adaptor nidaq ---------- adaptorInfo = AdaptorDllName: [1x68 char] AdaptorDllVersion: '2.14 (R2009a)' AdaptorName: 'nidaq' BoardNames: {'PCI-6034E'} InstalledBoardIds: {'Dev1'} ObjectConstructorName: {'analoginput('nidaq','Dev1')' '' 'digitalio('nidaq','Dev1')'} ----------Adaptor DLL Name ---------- C:\Program Files\MATLAB\R2009a\toolbox\daq\daq\private\mwnidaqmx.dll Size: 430080, Date: 12-Feb-2009 19:50:34 ----------Adaptor Name ---------- nidaq ----------Object Constructor Names ---------- analoginput('nidaq','Dev1') digitalio('nidaq','Dev1') ----------Additional Adaptor Information for adaptor nidaq ---------- NIDAQ Traditional is not installed. ----------Creating analoginput('nidaq','Dev1') object for adaptor nidaq ---------- Display Summary of Analog Input (AI) Object Using 'PCI-6034E'. Acquisition Parameters: 1000 samples per second on each channel. 1000 samples per trigger on each channel. 1 sec. of data to be logged upon START. Log data to 'Memory' on trigger. Trigger Parameters: 1 'Immediate' trigger(s) on START. Engine status: Waiting for START. 0 samples acquired since starting. 0 samples available for GETDATA. AI object contains no channels. ans = AdaptorName: 'nidaqmx' Bits: 16 Coupling: {'DC'} DeviceName: 'PCI-6034E' DifferentialIDs: [0 1 2 3 4 5 6 7] Gains: [1 2 20 200] ID: 'Dev1' InputRanges: [4x2 double] MaxSampleRate: 200000 MinSampleRate: 0.6000 NativeDataType: 'double' Polarity: {'Bipolar'} SampleType: 'Scanning' SingleEndedIDs: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15] SubsystemType: 'AnalogInput' TotalChannels: 16 VendorDriverDescription: 'National Instruments NIDAQmx driver' VendorDriverVersion: '9.0' ----------Creating digitalio('nidaq','Dev1') object for adaptor nidaq ---------- Display Summary of DigitalIO (DIO) Object Using 'PCI-6034E'. Port Parameters: Port 0 is port configurable for reading and writing. Engine status: Engine not required. DIO object contains no lines. ans = AdaptorName: 'nidaqmx' DeviceName: 'PCI-6034E' ID: 'Dev1' Port: [1x1 struct] SubsystemType: 'DigitalIO' TotalLines: 8 VendorDriverDescription: 'National Instruments NIDAQmx driver' VendorDriverVersion: '9.0' ----------parallel adaptor: ---------- ----------Registering adaptor: parallel ---------- Successfully registered parallel adaptor ----------Adaptor Information for adaptor parallel ---------- adaptorInfo = AdaptorDllName: [1x69 char] AdaptorDllVersion: '2.14 (R2009a)' AdaptorName: 'parallel' BoardNames: {'PC Parallel Port Hardware'} InstalledBoardIds: {'LPT1'} ObjectConstructorName: {'' '' 'digitalio('parallel','LPT1')'} ----------Adaptor DLL Name ---------- C:\Program Files\MATLAB\R2009a\toolbox\daq\daq\private\mwparallel.dll Size: 90112, Date: 19-Jan-2009 13:36:56 ----------Adaptor Name ---------- parallel ----------Object Constructor Names ---------- digitalio('parallel','LPT1') ----------Creating digitalio('parallel','LPT1') object for adaptor parallel ---------- Display Summary of DigitalIO (DIO) Object Using 'PC Parallel Port Hardware'. Port Parameters: Port 0 is port configurable for reading and writing. Port 1 is port configurable for reading. Port 2 is port configurable for reading and writing. Engine status: Engine not required. DIO object contains no lines. ans = AdaptorName: 'parallel' DeviceName: 'PC Parallel Port Hardware' ID: 'LPT1' Port: [1x3 struct] SubsystemType: 'DigitalIO' TotalLines: 17 VendorDriverDescription: 'Win I/O' VendorDriverVersion: '1.3' ----------winsound adaptor: ---------- ----------Registering adaptor: winsound ---------- Successfully registered winsound adaptor ----------Adaptor Information for adaptor winsound ---------- adaptorInfo = AdaptorDllName: [1x69 char] AdaptorDllVersion: '2.14 (R2009a)' AdaptorName: 'winsound' BoardNames: {'Realtek HD Audio Input'} InstalledBoardIds: {'0'} ObjectConstructorName: {'analoginput('winsound',0)' 'analogoutput('winsound',0)' ''} ----------Adaptor DLL Name ---------- C:\Program Files\MATLAB\R2009a\toolbox\daq\daq\private\mwwinsound.dll Size: 131072, Date: 19-Jan-2009 13:37:22 ----------Adaptor Name ---------- winsound ----------Object Constructor Names ---------- analoginput('winsound',0) analogoutput('winsound',0) ----------Creating analoginput('winsound',0) object for adaptor winsound ---------- Display Summary of Analog Input (AI) Object Using 'Realtek HD Audio Input'. Acquisition Parameters: 8000 samples per second on each channel. 8000 samples per trigger on each channel. 1 sec. of data to be logged upon START. Log data to 'Memory' on trigger. Trigger Parameters: 1 'Immediate' trigger(s) on START. Engine status: Waiting for START. 0 samples acquired since starting. 0 samples available for GETDATA. AI object contains no channels. ans = AdaptorName: 'winsound' Bits: 16 Coupling: {'AC Coupled'} DeviceName: 'Realtek HD Audio Input' DifferentialIDs: [] Gains: [] ID: '0' InputRanges: [-1 1] MaxSampleRate: 96000 MinSampleRate: 5000 NativeDataType: 'int16' Polarity: {'Bipolar'} SampleType: 'SimultaneousSample' SingleEndedIDs: [1 2] SubsystemType: 'AnalogInput' TotalChannels: 2 VendorDriverDescription: 'Windows Multimedia Driver' VendorDriverVersion: '5.10' ----------Creating analogoutput('winsound',0) object for adaptor winsound ---------- Display Summary of Analog Output (AO) Object Using 'Realtek HD Audio output'. Output Parameters: 8000 samples per second on each channel. Trigger Parameters: 1 'Immediate' trigger on START. Engine status: Waiting for START. 0 total sec. of data currently queued for START. 0 samples currently queued by PUTDATA. 0 samples sent to output device since START. AO object contains no channels. ans = AdaptorName: 'winsound' Bits: 16 ChannelIDs: [1 2] Coupling: {'AC Coupled'} DeviceName: 'Realtek HD Audio output' ID: '0' MaxSampleRate: 96000 MinSampleRate: 5000 NativeDataType: 'int16' OutputRanges: [-1 1] Polarity: {'Bipolar'} SampleType: 'SimultaneousSample' SubsystemType: 'AnalogOutput' TotalChannels: 2 VendorDriverDescription: 'Windows Multimedia Driver' VendorDriverVersion: '5.10' ----------MATLAB path: ---------- MATLABPATH C:\Program Files\MATLAB\R2009a\toolbox\natinst\daq C:\Documents and Settings\mishra\My Documents\Research\matlab_testing C:\Documents and Settings\mishra\My Documents\Research\matlab_testing\NI_DAQ C:\Program Files\MATLAB\R2009a\toolbox\matlab\general C:\Program Files\MATLAB\R2009a\toolbox\matlab\ops C:\Program Files\MATLAB\R2009a\toolbox\matlab\lang C:\Program Files\MATLAB\R2009a\toolbox\matlab\elmat C:\Program Files\MATLAB\R2009a\toolbox\matlab\randfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\elfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\specfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\matfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\datafun C:\Program Files\MATLAB\R2009a\toolbox\matlab\polyfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\funfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\sparfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\scribe C:\Program Files\MATLAB\R2009a\toolbox\matlab\graph2d C:\Program Files\MATLAB\R2009a\toolbox\matlab\graph3d C:\Program Files\MATLAB\R2009a\toolbox\matlab\specgraph C:\Program Files\MATLAB\R2009a\toolbox\matlab\graphics C:\Program Files\MATLAB\R2009a\toolbox\matlab\uitools C:\Program Files\MATLAB\R2009a\toolbox\matlab\strfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\imagesci C:\Program Files\MATLAB\R2009a\toolbox\matlab\iofun C:\Program Files\MATLAB\R2009a\toolbox\matlab\audiovideo C:\Program Files\MATLAB\R2009a\toolbox\matlab\timefun C:\Program Files\MATLAB\R2009a\toolbox\matlab\datatypes C:\Program Files\MATLAB\R2009a\toolbox\matlab\verctrl C:\Program Files\MATLAB\R2009a\toolbox\matlab\codetools C:\Program Files\MATLAB\R2009a\toolbox\matlab\helptools C:\Program Files\MATLAB\R2009a\toolbox\matlab\winfun C:\Program Files\MATLAB\R2009a\toolbox\matlab\winfun\net C:\Program Files\MATLAB\R2009a\toolbox\matlab\demos C:\Program Files\MATLAB\R2009a\toolbox\matlab\timeseries C:\Program Files\MATLAB\R2009a\toolbox\matlab\hds C:\Program Files\MATLAB\R2009a\toolbox\matlab\guide C:\Program Files\MATLAB\R2009a\toolbox\matlab\plottools C:\Program Files\MATLAB\R2009a\toolbox\local C:\Program Files\MATLAB\R2009a\toolbox\shared\controllib C:\Program Files\MATLAB\R2009a\toolbox\shared\dastudio C:\Program Files\MATLAB\R2009a\toolbox\matlab\datamanager C:\Program Files\MATLAB\R2009a\toolbox\simulink\simulink C:\Program Files\MATLAB\R2009a\toolbox\simulink\simulink\slresolve C:\Program Files\MATLAB\R2009a\toolbox\simulink\blocks C:\Program Files\MATLAB\R2009a\toolbox\simulink\components C:\Program Files\MATLAB\R2009a\toolbox\simulink\fixedandfloat C:\Program Files\MATLAB\R2009a\toolbox\simulink\fixedandfloat\fxpdemos C:\Program Files\MATLAB\R2009a\toolbox\simulink\fixedandfloat\obsolete C:\Program Files\MATLAB\R2009a\toolbox\simulink\simdemos C:\Program Files\MATLAB\R2009a\toolbox\simulink\simdemos\aerospace C:\Program Files\MATLAB\R2009a\toolbox\simulink\simdemos\automotive C:\Program Files\MATLAB\R2009a\toolbox\simulink\simdemos\simfeatures C:\Program Files\MATLAB\R2009a\toolbox\simulink\simdemos\simgeneral C:\Program Files\MATLAB\R2009a\toolbox\simulink\dee C:\Program Files\MATLAB\R2009a\toolbox\shared\dastudio\depviewer C:\Program Files\MATLAB\R2009a\toolbox\stateflow\stateflow C:\Program Files\MATLAB\R2009a\toolbox\rtw\rtw C:\Program Files\MATLAB\R2009a\toolbox\shared\sigbldr C:\Program Files\MATLAB\R2009a\toolbox\simulink\simulink\modeladvisor C:\Program Files\MATLAB\R2009a\toolbox\simulink\simulink\modeladvisor\fixpt C:\Program Files\MATLAB\R2009a\toolbox\simulink\simulink\mplayio C:\Program Files\MATLAB\R2009a\toolbox\simulink\simulink\dataobjectwizard C:\Program Files\MATLAB\R2009a\toolbox\shared\hdlshared C:\Program Files\MATLAB\R2009a\toolbox\rtw\accel C:\Program Files\MATLAB\R2009a\toolbox\stateflow\sfdemos C:\Program Files\MATLAB\R2009a\toolbox\stateflow\coder C:\Program Files\MATLAB\R2009a\toolbox\comm\comm C:\Program Files\MATLAB\R2009a\toolbox\comm\commdemos C:\Program Files\MATLAB\R2009a\help\toolbox\comm\examples C:\Program Files\MATLAB\R2009a\toolbox\comm\commobsolete C:\Program Files\MATLAB\R2009a\toolbox\commblks\commblks C:\Program Files\MATLAB\R2009a\toolbox\commblks\commmasks C:\Program Files\MATLAB\R2009a\toolbox\commblks\commmex C:\Program Files\MATLAB\R2009a\toolbox\commblks\commblksdemos C:\Program Files\MATLAB\R2009a\toolbox\commblks\commblksobsolete\v3 C:\Program Files\MATLAB\R2009a\toolbox\commblks\commblksobsolete\v2p5 C:\Program Files\MATLAB\R2009a\toolbox\commblks\commblksobsolete\v2 C:\Program Files\MATLAB\R2009a\help\toolbox\commblks\examples C:\Program Files\MATLAB\R2009a\toolbox\compiler C:\Program Files\MATLAB\R2009a\toolbox\control\control C:\Program Files\MATLAB\R2009a\toolbox\control\ctrlguis C:\Program Files\MATLAB\R2009a\toolbox\control\ctrlobsolete C:\Program Files\MATLAB\R2009a\toolbox\control\ctrlutil C:\Program Files\MATLAB\R2009a\toolbox\control\ctrldemos C:\Program Files\MATLAB\R2009a\toolbox\shared\slcontrollib C:\Program Files\MATLAB\R2009a\toolbox\daq\daq C:\Program Files\MATLAB\R2009a\toolbox\daq\daqguis C:\Program Files\MATLAB\R2009a\toolbox\daq\daqdemos C:\Program Files\MATLAB\R2009a\toolbox\daq\daqblks\daqblks C:\Program Files\MATLAB\R2009a\toolbox\daq\daqblks\daqmasks C:\Program Files\MATLAB\R2009a\toolbox\daq\daqblks\daqmex C:\Program Files\MATLAB\R2009a\toolbox\shared\testmeaslib C:\Program Files\MATLAB\R2009a\toolbox\dspblks\dspblks C:\Program Files\MATLAB\R2009a\toolbox\dspblks\dspmasks C:\Program Files\MATLAB\R2009a\toolbox\dspblks\dspmex C:\Program Files\MATLAB\R2009a\toolbox\dspblks\dspdemos C:\Program Files\MATLAB\R2009a\toolbox\shared\filterdesignlib C:\Program Files\MATLAB\R2009a\help\toolbox\dspblks\examples C:\Program Files\MATLAB\R2009a\toolbox\eml\eml C:\Program Files\MATLAB\R2009a\toolbox\emlcoder\emlcoder C:\Program Files\MATLAB\R2009a\toolbox\emlcoder\emlcodermex C:\Program Files\MATLAB\R2009a\toolbox\shared\simtargets C:\Program Files\MATLAB\R2009a\toolbox\filterdesign\filterdesign C:\Program Files\MATLAB\R2009a\toolbox\filterdesign\quantization C:\Program Files\MATLAB\R2009a\toolbox\filterdesign\filtdesdemos C:\Program Files\MATLAB\R2009a\toolbox\fixedpoint\fixedpoint C:\Program Files\MATLAB\R2009a\toolbox\fixedpoint\fidemos C:\Program Files\MATLAB\R2009a\toolbox\fixedpoint\fixedpointtool C:\Program Files\MATLAB\R2009a\toolbox\fixpoint C:\Program Files\MATLAB\R2009a\toolbox\fixpoint\fpca C:\Program Files\MATLAB\R2009a\toolbox\hdlfilter\hdlfilter C:\Program Files\MATLAB\R2009a\toolbox\hdlfilter\hdlfiltdemos C:\Program Files\MATLAB\R2009a\toolbox\ident\ident C:\Program Files\MATLAB\R2009a\toolbox\ident\nlident C:\Program Files\MATLAB\R2009a\toolbox\ident\idobsolete C:\Program Files\MATLAB\R2009a\toolbox\ident\idguis C:\Program Files\MATLAB\R2009a\toolbox\ident\idutils C:\Program Files\MATLAB\R2009a\toolbox\ident\iddemos C:\Program Files\MATLAB\R2009a\toolbox\ident\iddemos\examples C:\Program Files\MATLAB\R2009a\toolbox\ident\idhelp C:\Program Files\MATLAB\R2009a\toolbox\images\colorspaces C:\Program Files\MATLAB\R2009a\toolbox\images\images C:\Program Files\MATLAB\R2009a\toolbox\images\imdemos C:\Program Files\MATLAB\R2009a\toolbox\images\imuitools C:\Program Files\MATLAB\R2009a\toolbox\images\iptformats C:\Program Files\MATLAB\R2009a\toolbox\images\iptutils C:\Program Files\MATLAB\R2009a\toolbox\shared\imageslib C:\Program Files\MATLAB\R2009a\toolbox\shared\spcuilib C:\Program Files\MATLAB\R2009a\toolbox\instrument\instrument C:\Program Files\MATLAB\R2009a\toolbox\instrument\instrumentdemos C:\Program Files\MATLAB\R2009a\toolbox\instrument\instrumentblks\instrumentblks C:\Program Files\MATLAB\R2009a\toolbox\instrument\instrumentblks\instrumentmex C:\Program Files\MATLAB\R2009a\toolbox\instrument\instrumentblks\instrumentmasks C:\Program Files\MATLAB\R2009a\toolbox\slvnv\simcoverage C:\Program Files\MATLAB\R2009a\toolbox\optim\optim C:\Program Files\MATLAB\R2009a\toolbox\optim\optimdemos C:\Program Files\MATLAB\R2009a\toolbox\shared\optimlib C:\Program Files\MATLAB\R2009a\toolbox\signal\signal C:\Program Files\MATLAB\R2009a\toolbox\signal\sigtools C:\Program Files\MATLAB\R2009a\toolbox\signal\sptoolgui C:\Program Files\MATLAB\R2009a\toolbox\signal\sigdemos C:\Program Files\MATLAB\R2009a\toolbox\shared\siglib C:\Program Files\MATLAB\R2009a\toolbox\sl3d\sl3d C:\Program Files\MATLAB\R2009a\toolbox\sl3d\sl3ddemos C:\Program Files\MATLAB\R2009a\toolbox\slcontrol\slcontrol C:\Program Files\MATLAB\R2009a\toolbox\slcontrol\slctrlguis C:\Program Files\MATLAB\R2009a\toolbox\slcontrol\slctrlutil C:\Program Files\MATLAB\R2009a\toolbox\slcontrol\slctrldemos C:\Program Files\MATLAB\R2009a\toolbox\shared\sldv C:\Program Files\MATLAB\R2009a\toolbox\stats C:\Program Files\MATLAB\R2009a\toolbox\shared\statslib C:\Program Files\MATLAB\R2009a\toolbox\symbolic C:\Program Files\MATLAB\R2009a\toolbox\wavelet\wavelet C:\Program Files\MATLAB\R2009a\toolbox\wavelet\wmultisig1d C:\Program Files\MATLAB\R2009a\toolbox\wavelet\wavedemo C:\Program Files\MATLAB\R2009a\toolbox\wavelet\compression ---------- ----------End test ---------- ---------- This information has been saved in the text file: daqtest.txt If any errors occurred, please visit The MathWorks Technical Support Web Site at http://www.mathworks.com/contact_TS.html
From: Sherryl Radbil on 1 Feb 2010 07:57
Hi Apu, Thanks for including the exact error message and the output of running daqsupport. By all accounts it appears that you have succeeded in registering the NIDAQ-mx adaptor so I'm not sure why you're running daqregister again. According to the daqsupport you should access your PCI-6034E as ai = analoginput('nidaq','Dev1') See the section: ----------Adaptor Information for adaptor nidaq ---------- adaptorInfo = AdaptorDllName: [1x68 char] AdaptorDllVersion: '2.14 (R2009a)' AdaptorName: 'nidaq' BoardNames: {'PCI-6034E'} InstalledBoardIds: {'Dev1'} ObjectConstructorName: {'analoginput('nidaq','Dev1')' '' 'digitalio('nidaq','Dev1')'} A little further down daqsupport does just that successfully - see ----------Creating analoginput('nidaq','Dev1') object for adaptor nidaq ---------- Display Summary of Analog Input (AI) Object Using 'PCI-6034E'. Acquisition Parameters: 1000 samples per second on each channel. 1000 samples per trigger on each channel. 1 sec. of data to be logged upon START. Log data to 'Memory' on trigger. <snip> There is no need for you to call daqresgister again. All the best, Sherryl |