Why do I get a "NIDAQmx error: Device not available for routing" error when I output samples to an ANALOGOUTPUT object in Data Acquisition Toolbox 2.11 (R2007b) ?
Show older comments
I receive the following error when I use PUTSAMPLE to output samples to a NI-DAQmx interface ANALOGOUTPUT object after accessing a NI-DAQ Traditional interface ANALOGOUTPUT object corresponding to the same device.
Reproduction Code:
ao=analogoutput('nidaq',1) % Use of Trad Nidaq
addchannel(ao,1)
putsample(ao,0)
ao2=analogoutput('nidaq','Dev4') % Use of NiDAQmx
addchannel(ao2,1)
putsample(ao2,0)
ERROR: ??? NIDAQmx error : Device not available for routing. It is possible that the device needs to be reset or that the device is being reset. If you are resetting the device, wait for the reset to complete. For example, if you have used the device through Traditional NI-DAQ, you must reset the device before the requested route can be made. For SCXI devices, you must reset the communicator DAQ device. Call the Traditional NI-DAQ Device Reset VI or the Init_DA_Brds function. To reset all devices in Traditional NI-DAQ, right-click the Traditional NI-DAQ Devices folder in MAX and select Reset Driver for Traditional NI-DAQ. Task Name: MWDAT0018 Status Code: -89130
Accepted Answer
More Answers (0)
Categories
Find more on Data Acquisition Toolbox Supported Hardware 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!