Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read analog input from USB-6210 DAQ

Hi all
 
I am currently writing an application that is required to read analog input from three channels of a DAQ - this model is NI USB-6210. I am using Visual C++ .NET (2005 version). I do not have LabVIEW or Measurement Studio, but I do have VI Logger. I came across some sample codes in ANSI C, but I was wondering whether they can be used in the Visual Studio. Some of the sample programs I downloaded (in C) did not work. The DAQ system seems to work perfectly, since the Measurement and Automation Software gives perfect signal output by "test panel". My application is required to plot the analog input. Please give me some directions on how to proceed towards acquiring the signal at a software level - precisely, which libraries etc. to use. A sample code would be great. I have seen similar discussion threads, but could not make much out of them since I am totally new to NI's instruments.
 
Thanks,
Angad
0 Kudos
Message 1 of 11
(9,970 Views)
Hi Angad,

The NI-DAQmx driver installation does include examples that can be used for development in Visual C++.NET.  There is a KnowledgeBase article on our website here that provides information about the examples and development options available when developing in Visual C++.NET both with and without Measurement Studio.

Regards,
Andrew W
National Instruments
0 Kudos
Message 2 of 11
(9,945 Views)
Thanks a lot Andrew. That helped.
 
Angad
0 Kudos
Message 3 of 11
(9,932 Views)
Hi all

i have a ni usb 6210 daq
when i make the vi
every thing is ok
but where is the wiring diagram when i select it an error message appears that no wiring diagram are found

thanks in advance
0 Kudos
Message 4 of 11
(9,735 Views)

You should have posted a new question instead of hijacking an old an unrelated thread.

You are going to have to explain a bit more. You created a VI with a block diagram that controls a DAQ board and later, when you try to view the block diagram, it is not there?

0 Kudos
Message 5 of 11
(9,707 Views)

Hi Khairy,

I would like to ask for more information. Can you post screenshots of what you are seeing, along with any error messages and error numbers? The more detail you post, the quicker I can help knock out what you are seeing.

Thanks!!

David L.
Systems Engineering
National Instruments
0 Kudos
Message 6 of 11
(9,677 Views)
Hi David,

thanks for your reply and interest,
i connect the daq to the computer and test it using automation studio,after that i make a new Vi in labview 8, make all connection on the block diagram
when i double click on Daq assistant it opens ,

from daq Assistant -->Connection diagram
the following message appears

the connection diagram tool doesnot support this device

it is not the first time for me to use daq but the first to use Usb Daq.

Thanks,
Khairy
0 Kudos
Message 7 of 11
(9,654 Views)
Hi Khairy,

The USB-6210 does not have a connection diagram because it does not use a break out box. As such all outputs are labelled on the device itself. If you would like details on the pins you can also look at page A-2 of the USB-6210 user manual. For your convinience I have also included the pin outs here on this post.


Message Edited by Abhinav T on 07-05-2007 10:54 PM

Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 8 of 11
(9,632 Views)
Khairy,

I talked with Abhinav and believe the issue is the DAQmx driver version. I have the latest driver, DAQmx 8.5, and can see the connections made in the connection diagram window. If you have LabVIEW 7.1 or later, upgrading will not be a problem and should fix the problem. If the problem does persist, please post screenshots so I can see your setup, along with the DAQmx driver you are using.


Message Edited by David L. on 07-05-2007 11:47 PM

David L.
Systems Engineering
National Instruments
0 Kudos
Message 9 of 11
(9,625 Views)
Hi

Many Thanks for your reply and interest.
my problem is now fixed.

Many thanks again
Khairy
0 Kudos
Message 10 of 11
(9,611 Views)