LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a DAQ to Read a LDR

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.

 

 

0 Kudos
Message 1 of 6
(4,550 Views)

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.  

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 2 of 6
(4,541 Views)

I can't find the tutorials that are relevant to my Daq which is the (USB - 6008)?

 

 

0 Kudos
Message 3 of 6
(4,526 Views)

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. Smiley Wink

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.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 4 of 6
(4,502 Views)

I would suggest you read this.

 

It should help...I hope.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 5 of 6
(4,493 Views)

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/


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(4,485 Views)