Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2178

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

$
0
0

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


Viewing all articles
Browse latest Browse all 2178

Trending Articles