Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6211 : Device identifier is invalid

Hi,

 

I have a NI USB-6211 DAQ card and am using Visual C++ to write a program for it. Since I don't have much experience in Visual C++, I tried to use the examples provided in the ...\National Instruments\NI-DAQ\Examples\DAQmx ANSI C directory. I have also included the header file and the library file provided at ...\National Instruments\NI-DAQ\DAQmx ANSI C Dev and ..\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc respectively.

 

I am able to build the project without any issues. But when I run the generated '.exe file', it gives the following message: 

 

DAQmx Error Device identifier is invalid.

Device Specified: SC1Mod1

Task Name: _unnamedTask<0>

Status Code: -200220End of program, press Enter key to quit

 

I have installed NI-DAQmx 9.3 as the driver. Also, the DAQ card works perfectly, when I use the "Measurement & Automation" tool by NI.

 

If the solution is to change the device ID, then can anyone tell me how is it done? 🙂

 

Here are the screen shots from the 'Measurement & Automation' and the 'Device Manager'. So please help!!!

 

Thanks,

 

Amiya 

 

Download All
0 Kudos
Message 1 of 4
(4,903 Views)

The LV API and the C API are very similar in how they work with our DAQ products. So according to your screenshots that you included your device is named ‘Dev1’ in Max and according to your error message your C code is calling ‘SC1Mod1’.  You need to call the device just as you have it labeled in Max.  So in your case you can search for ‘SC1Mod1’ and replace all of those instances with ‘Dev1’. For clarification we support NI-DAQmx in all supported languages, including LabVIEW, SignalExpress, C, C++,, C#, .NET, and Visual Basic 6.

Jacob K
Message 2 of 4
(4,840 Views)

Hello Jacob.

 

Thanks for pointing that out. Now, my DAQ board works perfectly fine 🙂

0 Kudos
Message 3 of 4
(4,819 Views)

Hello Jecob,

 

I'm also very new on NI Daq (but i have experience with microcotroller programming in C/C++). I am working on multichannel recording using NI DAQ 6211. I wrote simple code in MATLAB and LABVIEW. But both are very slow to plot more than 4 to 5 channel! I don't know why? may be because they don't use lower level calls?

 

Anyways, firstly i need your advice among which i should work for quasi real-time plotting and storing multichannel data (16) in hard disk. Moreover, if possible i need to do some calculation between channels.

 

Please suggest me which platform is good for this?

 

LabVIEW Development Systems

LabVIEW, an open, standard environment for measurement and automation, provides an easy-to-use graphical development language for quickly building your data acquisition applications.

LabVIEW SignalExpress

Quickly acquire, analyze, and present data from hundreds of data acquisition devices and instruments, without programming, using LabVIEW SignalExpress.

LabWindowsTM/CVI

If you prefer ANSI C development, LabWindows/CVI includes a large set of built-in run-time libraries for data acquisition, analysis, and user interface design for C developers.

Measurement Studio

For Visual Studio application development, including Visual C# .NET, Visual Basic .NET, Visual Basic 6.0, and Visual C++, Measurement Studio is a suite of native user interface controls, tools, and class libraries that helps you easily perform analog, digital, and timing I/O operations on all National Instruments data acquisition devices.

 

Best regards,

Monzurul

0 Kudos
Message 4 of 4
(4,497 Views)