Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with Matlab Data Acquisition Toolbox / NI-6501 Error: -200324

Hi,

 

I'm trying to run an NI-6501 through Matlab R2012b.   I'm using Data Acquisition Toolbox ver 3.2 and I'm running on Windows 7 / 64 bit.

 

I'm using session based interfaces:

 

Code so far:

 

%Verify that NI 6501 is plugged in.

%Should get a readout in the MATLAB screen that shows

%USB connection for NI 6501.

 

deviceString = daq.getDevices;

niObj = deviceString.ID;

 

%Establish connection

 

session = daq.createSession('ni')

warning off;

session.addDigitalChannel(niObj, 'Port0/Line0:7', 'OutputOnly');

session.addDigitalChannel(niObj, 'Port2/Line0:7', 'OutputOnly');

warning on;

controlMatrix = ones(1,16);

 

However when I try to set any outputs, I get errors:

 

session.queueOutputData(controlMatrix); --> queueOutputData is disabled because the session contains channels that do not support clocked operations.

 

>> session.outputSingleScan(controlMatrix);
NI Error -200324:
NI-DAQmx is unable to communicate with the device. Make sure the device is present in and
accessible to the system, is not currently being reset, and is not reserved by another driver
such as Traditional NI-DAQ (Legacy).
Task Name: _unnamedTask<37>

Status Code: -200324

 

Can anyone offer any suggestions?

Thanks

0 Kudos
Message 1 of 2
(5,211 Views)

Hi cpilla17,

 

This sounds like it could be an issue with MATLAB®. They'll be able to provide more adequate support on their products. 

If this is an issue with hardware, you could test out the driver using NI MAX and test panels. If that works, then it's possible that it's not a hardware issue. 

 

MATLAB® is a registered trademark of The MathWorks, Inc.

 

Regards,

Joel I.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(5,183 Views)