Problem communicating with NI-DAQ 6353 using NI DAQ MX DLL's in MATLAB
Ältere Kommentare anzeigen
I'm currently using the NI-DAQmx Device Driver 9.7, and am having trouble loading all of the functions available in the DLL (see below). However, no error gets thrown when I create a task, but when I try to create an Analog output voltage line, it gave me the following error:
Warning: NIDAQ_Driver Error!! -- 01-Mar-2013 11:59:01
-200088::Task specified is invalid or does not exist.
> In NIDAQ_Driver>NIDAQ_Driver.CheckErrorStatus at 88
In NIDAQ_Driver>NIDAQ_Driver.WriteAnalogOutVoltage at 243
In NIDAQ_Driver>NIDAQ_Driver.WriteAnalogOutLine at 197
In NIDAQ_Driver>NIDAQ_Driver.WriteAnalogOutAllLines at 218
However, when I called the NI IT service guy, he helped me communicate with the DAQ using the Matlab control toolbox (followed directions from here: http://home.hit.no/~hansha/documents/matlab/training/Data%20Acquisition%20in%20MATLAB/Data%20Acquisition%20in%20MATLAB.pdf)
So in summary, if I use the MATLAB control toolbox, I can communicate with the DAQ. But if I use the DLLs, I can't even create an analog out task. I really need to use the DLLs because I have a lot of control code already written in MATLAB. This has worked before, but it seemed to stop working after I updated the drivers. Also on the other computers in the lab, this code seems to work fine on the NI-DAQ 6351 (using R2010B, Driver 9.2)
Thanks,
Ed
====== DLL functions not loaded =======
Functions not loaded:
Warning: The data type 'error' used by function DAQmxGetTaskAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'FcnPtr' used by function DAQmxRegisterEveryNSamplesEvent does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'FcnPtr' used by function DAQmxRegisterDoneEvent does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'FcnPtr' used by function DAQmxRegisterSignalEvent does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetChanAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetChanAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetTimingAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetTimingAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetTimingAttributeEx does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetTimingAttributeEx does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetTrigAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetTrigAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetReadAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetReadAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetWriteAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetWriteAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetExportedSignalAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetExportedSignalAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetScaleAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetScaleAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetBufferAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetSwitchChanAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetSwitchDeviceAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetSwitchDeviceAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetSwitchScanAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetDeviceAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxCreateWatchdogTimerTask does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetWatchdogAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetWatchdogAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetCalInfoAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetCalInfoAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetPhysicalChanAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetRealTimeAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetRealTimeAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetPersistedTaskAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetPersistedChanAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetPersistedScaleAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetSystemInfoAttribute does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetDigitalPowerUpStates does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetDigitalPowerUpStates does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetDigitalPullUpPullDownStates does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetDigitalPullUpPullDownStates does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxSetAnalogPowerUpStates does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Warning: The data type 'error' used by function DAQmxGetAnalogPowerUpStates does not exist.
> In loadlibrary at 403
In NIDAQ_Driver>NIDAQ_Driver.Initialize at 135
In NIDAQ_Driver>NIDAQ_Driver.NIDAQ_Driver at 75
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 2 Mär. 2013
0 Stimmen
https://www.mathworks.com/support/solutions/en/data/1-1B373/index.html?product=SL&solution=1-1B373
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!