02-06-2014 09:28 AM
Hi folks,
I'm trying to use a DAQ (NI USB-6008) to read the ouptut form an LDR. Ideally what I've set up is a simple circuit (as shown below). The Red wire is going to a power supply and the black wire is going to a negative of a power supply. The resisot is a 5.1kOhm resistor. the purple wires will lead to the daq and is acting as a voltmeter. I can't figure out how the daq settings are going to work for this or how to even start the program.
02-06-2014 09:35 AM
Look in Help > Find Examples... Hardware IO > DAQmx > Analog IN. You'll find some good example for collecting voltage. Search for the DAQmx tutorials and go through the basics.
02-06-2014 10:18 AM
I can't find the tutorials that are relevant to my Daq which is the (USB - 6008)?
02-07-2014 09:05 AM - edited 02-07-2014 09:11 AM
The DAQmx examples and tutorials are generic and apply to pretty much all DAQ products. There are special cases (current, strain, temperature modules) but your DAQ is a very basic unit. Almost all of the shipping examples will work. Especially something as simple as reading a voltage.
What version of LabVIEW are you using? Didi you look at the available examples???
EDIT: Here's a video on analog in: http://www.ni.com/white-paper/5370/en/ That plus your 6008 manual (for pinouts) and you should be ready to start coding. (Actually all you have to do is open one of the examples that's close to what you want and modify it. That's how most people start out.) There's also the DAQ Assistant which is like a DAQ setup wizard but you'll never learn how to use the real VIs that way.
02-07-2014 11:34 AM
I would suggest you read this.
It should help...I hope.
02-07-2014 12:04 PM
Also, Since noone mentioned it yet, There is the Finite Measurement (NI-DAQmx) sample project that installes for LabVIEW 2012 or later with DAQmx 9.5.5 and later
{Hey the online version of the documentation for this Sample Project is impossible to find! - Its accessable easilly though from the create project panel}
The KB that discusses the non- DAQmx sample project is http://www.ni.com/white-paper/14121/en/