You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
Warning and Timeout in DAQ when using session on NI USB-6259
6 views (last 30 days)
Show older comments
Simon Thomsen
on 21 May 2013
Hi,
I'm running a very basic code in matlab (2012a 64bit) trying to attain some data through the NI USB-6259. But it prompts me back with multiple warnings due to a callback error (full error below), which ends in a timeout on the data sampling. I've tried searching around for the problem, but without success. It may be a very simple mistake on my part but i just can't see it so any help would be greatly appreciated.
If any additional information is needed for clarification, i'll provide them as soon as i see the message.
Kind regards, Simon
code:
Logtime = 10;
Fs = 20000;
s = daq.createSession('ni');
s.addAnalogInputChannel('Dev1','ai0','Voltage');
s.addAnalogInputChannel('Dev1','ai1','Voltage');
s.Rate = Fs;
s.DurationInSeconds = Logtime;
[data time]=s.startForeground();
Error/warning:
Warning: Error occurred while executing callback:
Error using +
Invalid type of input arguments (should be uint64)
> In Channel>Channel.onCustomEvent at 360
In Channel>@(source,data)obj.onCustomEvent(data.Type,data.Data) at 286
In Session>Session.doWait at 2365
In StateHardwareRunning>StateHardwareRunning.checkForTimeout at 193
In Session>Session.doStartForeground at 2240
In StateReadyToStart>StateReadyToStart.startForeground at 100
In Session>Session.startForeground at 613
Timeout expired before operation could complete.
3 Comments
Simon Thomsen
on 21 May 2013
Thank you for replying, but sadly not the solution, got the error:
Expected input number 3, rate, to be one of these types:
double
Instead its type was uint64.
Simon Thomsen
on 21 May 2013
Even without stating Fs or Logtime (just using defaults) something is still off. I haven't played around with daq that much, so don't really have any ideas as to what could cause this problem :(
Accepted Answer
Friedrich
on 21 May 2013
Edited: Friedrich
on 21 May 2013
Hi,
I tried your code with a simulated NI USB-6259 and it is working fine for me in 12a. Could it be that you are using the 12a prerelease? I have seen that kind of error there but not in the actual release version.
The release version has as version number:
>> version
ans =
7.14.0.739 (R2012a)
5 Comments
Simon Thomsen
on 21 May 2013
Edited: Simon Thomsen
on 21 May 2013
Hmmm, odd... My matlab version is 7.14.0.739 also... no sign of it being a pre-release.
edit; If you have any ideas of what else might cause it, it would be greatly appreciated.
Simon Thomsen
on 21 May 2013
Edited: Friedrich
on 22 May 2013
Sure, it's a long one but here goes:
----------General Information ----------
Current Time & Date:
21-May-2013 16:35:09
Operating System:
Microsoft Windows [Version 6.1.7601]
Hardware Configuration:
x86 Family 6 Model 42 Stepping 7, GenuineIntel
The measured CPU speed is 1996 MHz
RAM is 8169 MB
Swap space is 16336 MB
PROCESSOR_ARCHITECTURE = AMD64
PROCESSOR_ARCHITEW6432 = undefined
MATLAB version:
7.14.0.739 (R2012a)
Data Acquisition Toolbox version:
Name: 'Data Acquisition Toolbox'
Version: '3.1'
Release: '(R2012a)'
Date: '29-Dec-2011'
Licenses: {'665040'}
MATLAB License Number:
665040
----------MATLAB root directory: ----------
C:\Program Files\MATLAB\R2012a
----------Data Acquisition Toolbox directory: ----------
C:\Program Files\MATLAB\R2012a\toolbox\daq
----------DAQ Session Based Vendors Available: ----------
Data acquisition vendor 'National Instruments':
ID: 'ni'
FullName: 'National Instruments'
AdaptorVersion: '3.1 (R2012a)'
DriverVersion: '9.6.0 NI-DAQmx'
IsOperational: true
----------DAQ Session Based Devices Available: ----------
ni: National Instruments USB-6259 (BNC) (Device ID: 'Dev1')
Analog input subsystem supports:
7 ranges supported
Rates from 0.1 to 1250000.0 scans/sec
32 channels ('ai0' - 'ai31')
'Voltage' measurement type
Analog output subsystem supports:
-5.0 to +5.0 Volts,-10 to +10 Volts ranges
Rates from 0.1 to 2857142.9 scans/sec
4 channels ('ao0','ao1','ao2','ao3')
'Voltage' measurement type
Counter input subsystem supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'EdgeCount','PulseWidth','Frequency','Position' measurement types
Counter output subsystem supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'PulseGeneration' measurement type
----------Session Based Device Details: ----------
----------Device Details for vendor: ni ----------
----------Device 1 ----------
ni: National Instruments USB-6259 (BNC) (Device ID: 'Dev1')
Analog input subsystem supports:
7 ranges supported
Rates from 0.1 to 1250000.0 scans/sec
32 channels ('ai0' - 'ai31')
'Voltage' measurement type
Analog output subsystem supports:
-5.0 to +5.0 Volts,-10 to +10 Volts ranges
Rates from 0.1 to 2857142.9 scans/sec
4 channels ('ao0','ao1','ao2','ao3')
'Voltage' measurement type
Counter input subsystem supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'EdgeCount','PulseWidth','Frequency','Position' measurement types
Counter output subsystem supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'PulseGeneration' measurement type
CouplingsAvailable: DC
SampleType: Scanning
TerminalConfigsAvailable: SingleEnded,SingleEndedNonReferenced,Differential
RangesAvailable: -0.10 to +0.10 Volts,-0.20 to +0.20 Volts,-0.50 to +0.50 Volts,-1.0 to +1.0 Volts,-2.0 to +2.0 Volts,-5.0 to +5.0 Volts,-10 to +10 Volts
Resolution: 16
RateLimit: [0.1 1250000.0]
MeasurementTypesAvailable: [1x1 cell]
DefaultMeasurementType: 'Voltage'
NativeDataType: 'double'
SubsystemType: AnalogInput
NumberOfChannelsAvailable: 32
ChannelNames: [32x1 cell]
TerminalConfigsAvailable: SingleEnded
RangesAvailable: -5.0 to +5.0 Volts,-10 to +10 Volts
Resolution: 16
RateLimit: [0.1 2857142.9]
MeasurementTypesAvailable: [1x1 cell]
DefaultMeasurementType: 'Voltage'
NativeDataType: 'double'
SubsystemType: AnalogOutput
NumberOfChannelsAvailable: 4
ChannelNames: [4x1 cell]
RangesAvailable: ''
Resolution: 32
RateLimit: [0.1 80000000.0]
MeasurementTypesAvailable: [1x4 cell]
DefaultMeasurementType: 'EdgeCount'
NativeDataType: 'double'
SubsystemType: CounterInput
NumberOfChannelsAvailable: 2
ChannelNames: [2x1 cell]
RangesAvailable: ''
Resolution: 32
RateLimit: [0.1 80000000.0]
MeasurementTypesAvailable: [1x1 cell]
DefaultMeasurementType: 'PulseGeneration'
NativeDataType: 'double'
SubsystemType: CounterOutput
NumberOfChannelsAvailable: 2
ChannelNames: [2x1 cell]
----------MATLAB path: ----------
MATLABPATH
C:\Users\Szeth\Documents\MATLAB
D:\Google Drev\ASE\Specialeprojekt\Data\Arbejdsmappe
C:\Program Files\MATLAB\spm8_r4667
C:\Program Files\MATLAB\spm8_r4667\EEGtemplates
C:\Program Files\MATLAB\spm8_r4667\apriori
C:\Program Files\MATLAB\spm8_r4667\canonical
C:\Program Files\MATLAB\spm8_r4667\config
C:\Program Files\MATLAB\spm8_r4667\external
C:\Program Files\MATLAB\spm8_r4667\external\bemcp
C:\Program Files\MATLAB\spm8_r4667\external\ctf
C:\Program Files\MATLAB\spm8_r4667\external\eeprobe
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\connectivity
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\fileio
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\forward
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\inverse
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\plotting
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\preproc
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\specest
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\src
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\statfun
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\trialfun
C:\Program Files\MATLAB\spm8_r4667\external\fieldtrip\utilities
C:\Program Files\MATLAB\spm8_r4667\external\mne
C:\Program Files\MATLAB\spm8_r4667\external\yokogawa
C:\Program Files\MATLAB\spm8_r4667\man
C:\Program Files\MATLAB\spm8_r4667\man\FieldMap
C:\Program Files\MATLAB\spm8_r4667\man\auditory
C:\Program Files\MATLAB\spm8_r4667\man\batch
C:\Program Files\MATLAB\spm8_r4667\man\biblio
C:\Program Files\MATLAB\spm8_r4667\man\bms
C:\Program Files\MATLAB\spm8_r4667\man\dartelguide
C:\Program Files\MATLAB\spm8_r4667\man\dcm
C:\Program Files\MATLAB\spm8_r4667\man\dcm_ir
C:\Program Files\MATLAB\spm8_r4667\man\dcm_ir\figures
C:\Program Files\MATLAB\spm8_r4667\man\dcm_phase
C:\Program Files\MATLAB\spm8_r4667\man\dcm_phase\figures
C:\Program Files\MATLAB\spm8_r4667\man\dcm_ssr
C:\Program Files\MATLAB\spm8_r4667\man\example_scripts
C:\Program Files\MATLAB\spm8_r4667\man\faces
C:\Program Files\MATLAB\spm8_r4667\man\faces_group
C:\Program Files\MATLAB\spm8_r4667\man\fmri_est
C:\Program Files\MATLAB\spm8_r4667\man\fmri_spec
C:\Program Files\MATLAB\spm8_r4667\man\images
C:\Program Files\MATLAB\spm8_r4667\man\meeg
C:\Program Files\MATLAB\spm8_r4667\man\meg_sloc
C:\Program Files\MATLAB\spm8_r4667\man\mmn
C:\Program Files\MATLAB\spm8_r4667\man\multimodal
C:\Program Files\MATLAB\spm8_r4667\man\multimodal\figures
C:\Program Files\MATLAB\spm8_r4667\man\pet
C:\Program Files\MATLAB\spm8_r4667\man\ppi
C:\Program Files\MATLAB\spm8_r4667\man\ppi\figures
C:\Program Files\MATLAB\spm8_r4667\matlabbatch
C:\Program Files\MATLAB\spm8_r4667\matlabbatch\cfg_basicio
C:\Program Files\MATLAB\spm8_r4667\matlabbatch\cfg_basicio\src
C:\Program Files\MATLAB\spm8_r4667\matlabbatch\cfg_confgui
C:\Program Files\MATLAB\spm8_r4667\matlabbatch\examples
C:\Program Files\MATLAB\spm8_r4667\rend
C:\Program Files\MATLAB\spm8_r4667\spm_orthviews
C:\Program Files\MATLAB\spm8_r4667\src
C:\Program Files\MATLAB\spm8_r4667\templates
C:\Program Files\MATLAB\spm8_r4667\toolbox
C:\Program Files\MATLAB\spm8_r4667\toolbox\Beamforming
C:\Program Files\MATLAB\spm8_r4667\toolbox\DARTEL
C:\Program Files\MATLAB\spm8_r4667\toolbox\DEM
C:\Program Files\MATLAB\spm8_r4667\toolbox\FieldMap
C:\Program Files\MATLAB\spm8_r4667\toolbox\HDW
C:\Program Files\MATLAB\spm8_r4667\toolbox\MEEGtools
C:\Program Files\MATLAB\spm8_r4667\toolbox\Neural_Models
C:\Program Files\MATLAB\spm8_r4667\toolbox\SRender
C:\Program Files\MATLAB\spm8_r4667\toolbox\Seg
C:\Program Files\MATLAB\spm8_r4667\toolbox\Shoot
C:\Program Files\MATLAB\spm8_r4667\toolbox\dcm_meeg
C:\Program Files\MATLAB\spm8_r4667\toolbox\mixture
C:\Program Files\MATLAB\spm8_r4667\toolbox\spectral
C:\Program Files\MATLAB\spm8_r4667\toolbox\vbm8
C:\Program Files\MATLAB\spm8_r4667\tpm
C:\Program Files\MATLAB\R2012a\toolbox\matlab\demos
C:\Program Files\MATLAB\R2012a\toolbox\matlab\graph2d
C:\Program Files\MATLAB\R2012a\toolbox\matlab\graph3d
C:\Program Files\MATLAB\R2012a\toolbox\matlab\graphics
C:\Program Files\MATLAB\R2012a\toolbox\matlab\plottools
C:\Program Files\MATLAB\R2012a\toolbox\matlab\scribe
C:\Program Files\MATLAB\R2012a\toolbox\matlab\specgraph
C:\Program Files\MATLAB\R2012a\toolbox\matlab\uitools
C:\Program Files\MATLAB\R2012a\toolbox\local
C:\Program Files\MATLAB\R2012a\toolbox\matlab\general
C:\Program Files\MATLAB\R2012a\toolbox\matlab\ops
C:\Program Files\MATLAB\R2012a\toolbox\matlab\lang
C:\Program Files\MATLAB\R2012a\toolbox\matlab\elmat
C:\Program Files\MATLAB\R2012a\toolbox\matlab\randfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\elfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\specfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\matfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\datafun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\polyfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\funfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\sparfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\strfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\iofun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\timefun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\datatypes
C:\Program Files\MATLAB\R2012a\toolbox\matlab\verctrl
C:\Program Files\MATLAB\R2012a\toolbox\matlab\codetools
C:\Program Files\MATLAB\R2012a\toolbox\matlab\helptools
C:\Program Files\MATLAB\R2012a\toolbox\matlab\winfun
C:\Program Files\MATLAB\R2012a\toolbox\matlab\winfun\net
C:\Program Files\MATLAB\R2012a\toolbox\matlab\hds
C:\Program Files\MATLAB\R2012a\toolbox\matlab\guide
C:\Program Files\MATLAB\R2012a\toolbox\matlab\datamanager
C:\Program Files\MATLAB\R2012a\toolbox\matlab\optimfun
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\autosar\autosar\dataclasses
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\autosar\autosar
C:\Program Files\MATLAB\R2012a\toolbox\rtw\accel
C:\Program Files\MATLAB\R2012a\toolbox\simulink\blocks\library
C:\Program Files\MATLAB\R2012a\toolbox\simulink\blocks\obsolete
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink\dataclasses
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink\slresolve
C:\Program Files\MATLAB\R2012a\toolbox\simulink\blocks
C:\Program Files\MATLAB\R2012a\toolbox\simulink\components
C:\Program Files\MATLAB\R2012a\toolbox\simulink\fixedandfloat
C:\Program Files\MATLAB\R2012a\toolbox\simulink\fixedandfloat\obsolete
C:\Program Files\MATLAB\R2012a\toolbox\simulink\dee
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink\mplayio
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink\dataobjectwizard
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simdemos\dataclasses
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simdemos
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simdemos\aerospace
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simdemos\automotive
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simdemos\industrial
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simdemos\simfeatures
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simdemos\simgeneral
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink\modeladvisor
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink\modeladvisor\fixpt
C:\Program Files\MATLAB\R2012a\toolbox\shared\glue
C:\Program Files\MATLAB\R2012a\toolbox\shared\glue\studio
C:\Program Files\MATLAB\R2012a\toolbox\stateflow\stateflow
C:\Program Files\MATLAB\R2012a\toolbox\stateflow\coder
C:\Program Files\MATLAB\R2012a\toolbox\stateflow\sfdemos
C:\Program Files\MATLAB\R2012a\toolbox\matlab\audiovideo
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\bioinfo
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\biolearning
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\microarray
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\mass_spec
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\proteins
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\biomatrices
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\graphtheory
C:\Program Files\MATLAB\R2012a\toolbox\bioinfo\biodemos
C:\Program Files\MATLAB\R2012a\toolbox\coder\emlcodermex
C:\Program Files\MATLAB\R2012a\toolbox\rtw\rtw
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\shared
C:\Program Files\MATLAB\R2012a\toolbox\rtw\coder_foundation\tfl
C:\Program Files\MATLAB\R2012a\toolbox\shared\simtargets
C:\Program Files\MATLAB\R2012a\toolbox\coder\coder
C:\Program Files\MATLAB\R2012a\toolbox\comm\comm
C:\Program Files\MATLAB\R2012a\toolbox\comm\commutilities\comminit
C:\Program Files\MATLAB\R2012a\toolbox\comm\commutilities\commmex
C:\Program Files\MATLAB\R2012a\toolbox\comm\commutilities
C:\Program Files\MATLAB\R2012a\toolbox\comm\commdeprecated
C:\Program Files\MATLAB\R2012a\toolbox\comm\commdemos
C:\Program Files\MATLAB\R2012a\help\toolbox\comm\examples
C:\Program Files\MATLAB\R2012a\toolbox\shared\comparisons
C:\Program Files\MATLAB\R2012a\toolbox\compiler
C:\Program Files\MATLAB\R2012a\toolbox\compiler\compilerdemos
C:\Program Files\MATLAB\R2012a\toolbox\control\control
C:\Program Files\MATLAB\R2012a\toolbox\control\ctrlguis
C:\Program Files\MATLAB\R2012a\toolbox\control\ctrlobsolete
C:\Program Files\MATLAB\R2012a\toolbox\control\ctrlutil
C:\Program Files\MATLAB\R2012a\toolbox\control\ctrldemos
C:\Program Files\MATLAB\R2012a\help\toolbox\control\examples
C:\Program Files\MATLAB\R2012a\toolbox\curvefit\curvefit
C:\Program Files\MATLAB\R2012a\toolbox\curvefit\splines
C:\Program Files\MATLAB\R2012a\toolbox\curvefit\cftoolgui
C:\Program Files\MATLAB\R2012a\toolbox\curvefit\sftoolgui
C:\Program Files\MATLAB\R2012a\toolbox\curvefit\curvefitdemos
C:\Program Files\MATLAB\R2012a\toolbox\daq\daq
C:\Program Files\MATLAB\R2012a\toolbox\daq\daqguis
C:\Program Files\MATLAB\R2012a\toolbox\daq\daqdemos
C:\Program Files\MATLAB\R2012a\toolbox\distcomp
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\distcomp
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\user
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\mpi
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\parallel
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\parallel\util
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\lang
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\cluster
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\gpu
C:\Program Files\MATLAB\R2012a\toolbox\distcomp\pctdemos
C:\Program Files\MATLAB\R2012a\toolbox\dotnetbuilder\dotnetbuilder
C:\Program Files\MATLAB\R2012a\toolbox\dotnetbuilder\dotnetbuilderdemos
C:\Program Files\MATLAB\R2012a\toolbox\dsp\dsp
C:\Program Files\MATLAB\R2012a\toolbox\dsp\dsputilities
C:\Program Files\MATLAB\R2012a\toolbox\dsp\dsputilities\dspinit
C:\Program Files\MATLAB\R2012a\toolbox\dsp\dsputilities\dspmex
C:\Program Files\MATLAB\R2012a\toolbox\dsp\dspdemos
C:\Program Files\MATLAB\R2012a\help\toolbox\dsp\examples
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\simulink\dsp
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\ecoder
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\ecoder\ecoderdemos\dataclasses
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\ecoder\ecoderdemos
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\mpt
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\mpt\mpt
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\mpt\user_specific
C:\Program Files\MATLAB\R2012a\toolbox\embeddedcoder
C:\Program Files\MATLAB\R2012a\toolbox\eml\eml
C:\Program Files\MATLAB\R2012a\toolbox\dsp\filterdesign
C:\Program Files\MATLAB\R2012a\toolbox\fixedpoint\fixedpointtool
C:\Program Files\MATLAB\R2012a\toolbox\fixedpoint\fidemos
C:\Program Files\MATLAB\R2012a\toolbox\fixedpoint\fixedpoint
C:\Program Files\MATLAB\R2012a\toolbox\simulink\fixedandfloat\fxpdemos
C:\Program Files\MATLAB\R2012a\toolbox\fuzzy\fuzzy
C:\Program Files\MATLAB\R2012a\toolbox\fuzzy\fuzzyutil
C:\Program Files\MATLAB\R2012a\toolbox\fuzzy\fuzdemos
C:\Program Files\MATLAB\R2012a\toolbox\globaloptim
C:\Program Files\MATLAB\R2012a\toolbox\globaloptim\globaloptim
C:\Program Files\MATLAB\R2012a\toolbox\globaloptim\globaloptimdemos
C:\Program Files\MATLAB\R2012a\toolbox\idelink
C:\Program Files\MATLAB\R2012a\toolbox\idelink\foundation
C:\Program Files\MATLAB\R2012a\toolbox\idelink\foundation\autointerface
C:\Program Files\MATLAB\R2012a\toolbox\idelink\foundation\autointerface\ideregisterplugins
C:\Program Files\MATLAB\R2012a\toolbox\idelink\foundation\util
C:\Program Files\MATLAB\R2012a\toolbox\idelink\foundation\errorhandler
C:\Program Files\MATLAB\R2012a\toolbox\idelink\foundation\xmakefile
C:\Program Files\MATLAB\R2012a\toolbox\idelink\foundation\hookpoints
C:\Program Files\MATLAB\R2012a\toolbox\ident\ident
C:\Program Files\MATLAB\R2012a\toolbox\ident\nlident
C:\Program Files\MATLAB\R2012a\toolbox\ident\idobsolete
C:\Program Files\MATLAB\R2012a\toolbox\ident\idguis
C:\Program Files\MATLAB\R2012a\toolbox\ident\idutils
C:\Program Files\MATLAB\R2012a\toolbox\ident\idhelp
C:\Program Files\MATLAB\R2012a\toolbox\ident\iddemos
C:\Program Files\MATLAB\R2012a\toolbox\ident\iddemos\examples
C:\Program Files\MATLAB\R2012a\toolbox\images\colorspaces
C:\Program Files\MATLAB\R2012a\toolbox\images\images
C:\Program Files\MATLAB\R2012a\toolbox\images\imuitools
C:\Program Files\MATLAB\R2012a\toolbox\images\iptformats
C:\Program Files\MATLAB\R2012a\toolbox\images\iptutils
C:\Program Files\MATLAB\R2012a\toolbox\matlab\imagesci
C:\Program Files\MATLAB\R2012a\toolbox\images\imdemos
C:\Program Files\MATLAB\R2012a\toolbox\imaq\imaq
C:\Program Files\MATLAB\R2012a\toolbox\imaq\imaqblks\imaqblks
C:\Program Files\MATLAB\R2012a\toolbox\imaq\imaqblks\imaqmasks
C:\Program Files\MATLAB\R2012a\toolbox\imaq\imaqblks\imaqmex
C:\Program Files\MATLAB\R2012a\toolbox\imaq\imaqdemos
C:\Program Files\MATLAB\R2012a\toolbox\instrument\instrument
C:\Program Files\MATLAB\R2012a\toolbox\instrument\instrumentblks\instrumentblks
C:\Program Files\MATLAB\R2012a\toolbox\instrument\instrumentblks\instrumentmex
C:\Program Files\MATLAB\R2012a\toolbox\instrument\instrumentblks\instrumentmasks
C:\Program Files\MATLAB\R2012a\toolbox\instrument\instrumentdemos
C:\Program Files\MATLAB\R2012a\toolbox\shared\instrument
C:\Program Files\MATLAB\R2012a\toolbox\sam\m3i
C:\Program Files\MATLAB\R2012a\toolbox\nnet
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nncontrol
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nndemos
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nndemos\nndatasets
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnadapt
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nndatafun
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnderivative
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nndistance
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nndivision
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nninitlayer
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nninitnetwork
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nninitweight
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnlearn
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnnetfun
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnnetinput
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnnetwork
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnperformance
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnplot
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnprocess
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnsearch
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nntopology
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nntrain
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nntransfer
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnet\nnweight
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnguis
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnobsolete
C:\Program Files\MATLAB\R2012a\toolbox\nnet\nnutils
C:\Program Files\MATLAB\R2012a\toolbox\opc\opc
C:\Program Files\MATLAB\R2012a\toolbox\opc\opcgui
C:\Program Files\MATLAB\R2012a\toolbox\opc\opcdemos
C:\Program Files\MATLAB\R2012a\toolbox\opc\opcdemos\opcblksdemos
C:\Program Files\MATLAB\R2012a\toolbox\opc\opcblks\opcblks
C:\Program Files\MATLAB\R2012a\toolbox\opc\opcblks\opcmasks
C:\Program Files\MATLAB\R2012a\toolbox\optim\optim
C:\Program Files\MATLAB\R2012a\toolbox\optim\optimdemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\common\data\core\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\common\data\mli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\common\foundation\mli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\common\units\core\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\common\units\mli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\drive\drive
C:\Program Files\MATLAB\R2012a\toolbox\physmod\drive\drivedemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\elec\elec
C:\Program Files\MATLAB\R2012a\toolbox\physmod\elec\elecdemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\equation_language\equation_language
C:\Program Files\MATLAB\R2012a\toolbox\physmod\gl\core\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\gl\sli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\gui\gfx\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\logging\base\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\logging\mli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\mech\mech
C:\Program Files\MATLAB\R2012a\toolbox\physmod\mech\importer
C:\Program Files\MATLAB\R2012a\toolbox\physmod\mech\mechdemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\network_engine\ne_support
C:\Program Files\MATLAB\R2012a\toolbox\physmod\network_engine\network_engine
C:\Program Files\MATLAB\R2012a\toolbox\physmod\ne_sli\ne_sli
C:\Program Files\MATLAB\R2012a\toolbox\physmod\pmir\pmir
C:\Program Files\MATLAB\R2012a\toolbox\physmod\pm_sli\pm_sli
C:\Program Files\MATLAB\R2012a\toolbox\physmod\pm_visimpl\pm_visimpl
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\powersys
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\dr\dr
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\drives\drives
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\facts\facts
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\dr\drdemo
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\drives\drivesdemo
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\facts\factsdemo
C:\Program Files\MATLAB\R2012a\toolbox\physmod\powersys\powerdemo
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sdl\sdl
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sdl\classic
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sdl\sdldemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sh\sh
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sh\shdemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\compiler\core\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\compiler\sli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\simscapedemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\engine\core\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\engine\mli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\engine\sli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\foundation\simscape
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape_language\simscape_language
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\library\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simscape\simscape\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\simulation\base\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\core\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\images
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\wing_landing_gear
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\wing_landing_gear\images
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\cart_double_pendulum
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\cart_double_pendulum\images
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\stewart_platform
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\stewart_platform\images
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\double_crank_aiming
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\smdemos\double_crank_aiming\images
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\gui\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\local\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\sli\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\sm\m
C:\Program Files\MATLAB\R2012a\toolbox\physmod\sm\ssci\m
C:\Program Files\MATLAB\R2012a\toolbox\realtime
C:\Program Files\MATLAB\R2012a\toolbox\realtime\realtime
C:\Program Files\MATLAB\R2012a\toolbox\realtime\realtime\rtw
C:\Program Files\MATLAB\R2012a\toolbox\slvnv\reqmgt
C:\Program Files\MATLAB\R2012a\toolbox\slvnv\slvnv
C:\Program Files\MATLAB\R2012a\toolbox\slvnv\rmidemos
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\asap2\asap2\dataclasses
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\asap2\asap2
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\asap2\asap2\user
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\common\can\blocks\dataclasses
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\common\can\blocks
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\common\can\blocks\tlc_c
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\common\tgtcommon
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\connectivity
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\pil
C:\Program Files\MATLAB\R2012a\toolbox\rtw\rtw\cgv\api
C:\Program Files\MATLAB\R2012a\toolbox\rtw\rtw\misra
C:\Program Files\MATLAB\R2012a\toolbox\simulinkcoder
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\rtwin\rtwin
C:\Program Files\MATLAB\R2012a\toolbox\rtw\targets\rtwin\rtwindemos
C:\Program Files\MATLAB\R2012a\toolbox\rtw\rtwdemos
C:\Program Files\MATLAB\R2012a\toolbox\rtw\rtwdemos\rsimdemos
C:\Program Files\MATLAB\R2012a\toolbox\simulink\blocks\sb2sl
C:\Program Files\MATLAB\R2012a\toolbox\shared\asynciolib
C:\Program Files\MATLAB\R2012a\toolbox\shared\cgir_fe
C:\Program Files\MATLAB\R2012a\toolbox\shared\coder\coder
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\engine
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\engine\numerics
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\engine\options
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\engine\optim
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\general
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\graphics
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\graphics\utils
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\graphics\plotoptions
C:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\requirements
C:\Program Files\MATLAB\R2012a\toolbox\shared\dastudio
C:\Program Files\MATLAB\R2012a\toolbox\shared\dastudio\depviewer
C:\Program Files\MATLAB\R2012a\toolbox\shared\dspblks\dspblks
C:\Program Files\MATLAB\R2012a\toolbox\shared\dspblks\dspmex
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\vision\matlab\utilities
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\vision\simulink\utilities
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\vision\matlab\utilities\mex
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\vision\simulink\utilities\mex
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\vision\matlab\utilities\init
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\vision\matlab\vision
C:\Program Files\MATLAB\R2012a\toolbox\shared\dsp\vision\simulink\vision
C:\Program Files\MATLAB\R2012a\toolbox\shared\filterdesignlib
C:\Program Files\MATLAB\R2012a\toolbox\shared\hdlshared
C:\Program Files\MATLAB\R2012a\toolbox\shared\imageslib
C:\Program Files\MATLAB\R2012a\toolbox\shared\imaqlib
C:\Program Files\MATLAB\R2012a\toolbox\shared\measure
C:\Program Files\MATLAB\R2012a\toolbox\shared\optimlib
C:\Program Files\MATLAB\R2012a\toolbox\shared\rptgen
C:\Program Files\MATLAB\R2012a\toolbox\shared\sigbldr
C:\Program Files\MATLAB\R2012a\toolbox\shared\siglib
C:\Program Files\MATLAB\R2012a\toolbox\shared\slcontrollib
C:\Program Files\MATLAB\R2012a\toolbox\shared\sldv
C:\Program Files\MATLAB\R2012a\toolbox\shared\slvnv
C:\Program Files\MATLAB\R2012a\toolbox\slvnv\simcoverage
C:\Program Files\MATLAB\R2012a\toolbox\shared\spcuilib
C:\Program Files\MATLAB\R2012a\toolbox\shared\statslib
C:\Program Files\MATLAB\R2012a\toolbox\shared\system\system
C:\Program Files\MATLAB\R2012a\toolbox\shared\testconsole
C:\Program Files\MATLAB\R2012a\toolbox\shared\testmeaslib\general
C:\Program Files\MATLAB\R2012a\toolbox\shared\testmeaslib\graphics
C:\Program Files\MATLAB\R2012a\toolbox\shared\testmeaslib\simulink
C:\Program Files\MATLAB\R2012a\toolbox\signal\signal
C:\Program Files\MATLAB\R2012a\toolbox\signal\sigtools
C:\Program Files\MATLAB\R2012a\toolbox\signal\sptoolgui
C:\Program Files\MATLAB\R2012a\toolbox\signal\sigdemos
C:\Program Files\MATLAB\R2012a\toolbox\shared\simulink
C:\Program Files\MATLAB\R2012a\toolbox\sl3d\sl3d
C:\Program Files\MATLAB\R2012a\toolbox\sl3d\sl3ddemos
C:\Program Files\MATLAB\R2012a\toolbox\slcontrol\slcontrol
C:\Program Files\MATLAB\R2012a\toolbox\slcontrol\slctrlguis
C:\Program Files\MATLAB\R2012a\toolbox\slcontrol\slctrlutil
C:\Program Files\MATLAB\R2012a\toolbox\slcontrol\slctrlobsolete
C:\Program Files\MATLAB\R2012a\toolbox\slcontrol\slctrldemos
C:\Program Files\MATLAB\R2012a\help\toolbox\slcontrol\examples
C:\Program Files\MATLAB\R2012a\toolbox\simulink\simulink\slproject
C:\Program Files\MATLAB\R2012a\toolbox\stats\stats
C:\Program Files\MATLAB\R2012a\toolbox\stats\classreg
C:\Program Files\MATLAB\R2012a\toolbox\stats\statsdemos
C:\Program Files\MATLAB\R2012a\toolbox\stm\stm
C:\Program Files\MATLAB\R2012a\toolbox\stm\stmdemos
C:\Program Files\MATLAB\R2012a\toolbox\symbolic\symbolic
C:\Program Files\MATLAB\R2012a\toolbox\symbolic\symbolicdemos
C:\Program Files\MATLAB\R2012a\toolbox\matlab\system
C:\Program Files\MATLAB\R2012a\toolbox\matlab\timeseries
C:\Program Files\MATLAB\R2012a\toolbox\vision\vision
C:\Program Files\MATLAB\R2012a\toolbox\vision\visionutilities
C:\Program Files\MATLAB\R2012a\toolbox\vision\visionutilities\visioninit
C:\Program Files\MATLAB\R2012a\toolbox\vision\visionutilities\visionmex
C:\Program Files\MATLAB\R2012a\toolbox\vision\visiondemos
C:\Program Files\MATLAB\R2012a\help\toolbox\vision\examples
C:\Program Files\MATLAB\R2012a\toolbox\wavelet\wavelet
C:\Program Files\MATLAB\R2012a\toolbox\wavelet\wmultisig1d
C:\Program Files\MATLAB\R2012a\toolbox\wavelet\wavedemo
C:\Program Files\MATLAB\R2012a\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
Friedrich
on 22 May 2013
So far it looks fine for me. I can see that you have some custom paths added, maybe something is shadowing some Data Acquisition Toolbox file?
We could figure that out by starting MATLAB, running a
clear functions
After that a
inmem
to see which m files are “loaded” by MATLAB (should be one or two files).
Now run the code and wait until the error occurs. Finally run:
celldisp(inmem('-completenames'))
To see which M files were touched. You can post the output here.
Simon Thomsen
on 22 May 2013
Ran what you posted and got this output:
>> clear functions
>> inmem
ans =
Empty cell array: 0-by-1
>> celldisp(inmem('-completenames'))
ans{1} =
C:\Program Files\MATLAB\R2012a\toolbox\matlab\iofun\filesep.m
ans{2} =
C:\Program Files\MATLAB\R2012a\toolbox\matlab\codetools\workspacefunc.m
ans{3} =
C:\Program Files\MATLAB\R2012a\toolbox\matlab\codetools\functionhintsfunc.m
You´re right, I've added a few files myself, tried to remove them from the pathtool (can always add them again when i need them) and the warning/error was gone! When i added the spm8 files (some statistical mapping used in medical imaging) again, the problem reoccurred, so there must be some kind of overlap in function calls that aren't handled so well.
Thanks a bunch for your help Friedrich! Much appreciated!
Kind regards, Simon
More Answers (0)
See Also
Categories
Find more on Hardware-in-the-Loop Simulation with Simulink Real-Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)