I receive the following error when I use PUTSAMPLE to output samples to a NI-DAQmx interface ANALOGOUTPUT object after accesing 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)
??? 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
Best Answer