Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB DAQ using Matlab

I am trying to use Matlab to communicate with the NI DAQPad-6015. When I try to specify the analoq input ai, I get the message -
??? Error using ==> analoginput.analoginput
Error using ==> analoginput.analoginput
NI-DAQ: The specified device ID is invalid.
Run the NI-DAQ Configuation Utility to determine the valid IDs.
I tried to use MAX to configure the device, but I can't access the properties in the configuration tree as it is 'greyed out'.
I can test the device using MAX, but that's all.
0 Kudos
Message 1 of 3
(3,787 Views)

Hi Monette

The reason why the properties are greyed out in MAX is due to the reason shown in the KB

http://digital.ni.com/public.nsf/websearch/8C4B5F8C7B8DB3B186256F270068A6E9?OpenDocument

Have you specified the device ID as in Measurement and Automation Explorer?

Although on inspection the code seems correct, the other problem may be a result of you calling the device by the wrong name in your program.  You need to call the device by the name you have defined (or is default) in MAX. ((This should be displayed next to the device in the devices and interfaces tree.))

Is this any help?

AdamB

NIUK

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 2 of 3
(3,770 Views)
To the best of my knowledge the the Mathworks DAQ aoftware only supports Traditional NI-DAQ devices.  Since the DAQPad-6015 is a newer, NI-DAQmx only device, is likely won't work.  You can always use LabVIEW, C, or a variaety of other languages, or a PCI E Series card with similar functionality.
0 Kudos
Message 3 of 3
(3,756 Views)