MatLab for DAQ

I am trying to use a NI-6025 controller for various testing applications at my company. Below is the code that I am trying to use for data acquisition:

ai = analoginput('nidaq','Dev1');
data = getdata(ai);

When I get to the 'start' command, however, I receive an error:

[color=Red]??? The hardware you are trying to use is already
reserved, either by another
object in this MATLAB session, or possibly by another
application. To unreserve
the device if held by this session of MATLAB or another
MATLAB session, delete
the object that may have it reserved, or run daqreset.
As a last resort, use
National Instrument's Measurement & Automation Explorer
to reset the device.

Error in ==> daqdevice.start at 62
start( daqgetfield(obj,'uddobject') );[/color]

I've restarted my computer to verify that nothing else could possibly be referencing the controller, and I've also verified on the Measurement and Automation Explorer that the device is free. Does anyone have any suggestions as how I could receive data from my controller? Your help is appreciated.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!