LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assistant

Hi, I am a student in college that is trying to recreate an I-V program that records the current versus voltage on a solar cell. I have a code that my research professor has been using from 2014 that has just become outdated and adds a lot more time to record the data. I have been searching all over the forums and youtube videos to finally figure out that I need to use a DAQ assistant. My main issue right now is I am trying to figure out a way to create the program and override LabVIEW to allow me to use it without being hooked up to the voltage supply. Is there any way I can do that or work around this problem? Thanks.

0 Kudos
Message 1 of 7
(1,419 Views)

We need more info to help.

 

What hardware are you using to record the voltage and current? 

 

Is the existing program written in LabVIEW? 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 2 of 7
(1,394 Views)

Sigh.  You came to the right place, and many of us will tell you that you do not want to use the Dreaded DAQ Assistant (or "DDA").  You especially don't want to use its Evil Twin, the Dynamic Data Wire.

 

LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is software "invented" by Engineers for Engineers to enable them to "wire" components together to make measurements, move machinery, turn on and off switches, etc.

 

Here are some tips and general points.

  • You are measuring Voltage and Current on a solar cell.  So you must haveOp (physical) wires running from your solar cell to something that is connected to the Computer, some "device".  Maybe it is a board plugged into your desktop's backplane, maybe it is a little box connected by a USB cable to a USB input on your computer (desktop or laptop).  You need to know the "name" of this device.
  • LabVIEW comes with a utility called the Measurement and Automation Explorer, or MAX.  Open MAX.  It has a set of "devices", one of which should (I hope) correspond to the device you are using to measure Voltage and Current.  You can use MAX to "play" with your Device, learn its inputs and outputs, configure it to take some data, then actually tell it "Take some data and show it to me as you acquire it".
  • MAX allows you to configure your Acquisition device, including getting it to give you data in "scaled units" that make sense to you (i.e. in Amps and Volts, rather than "Signed integers from -32768 to 32767" that you have to scale, yourself.
  • You can use MAX to define a "Task" that handles all of the "busywork" for you -- it can define the device you are goihg to use, the inputs and outputs, the scaline, the sampling rate, etc.
  • There's a wonderful White Paper from NI, "Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications" (do a Web search with the first 5 words of that title).  Ignore Point 1 (which talks about the DDA).  Pay attention to the rest.  It tells you:
    • Use MAX to understand your device and create a Task.
    • Drop 3-5 DAQmx Functions on your Block Diagram:  Start Task, DAQmx Read, Stop Task, with a While loop around the Read (and some other things inside the While to do something with the data you are reading).

Give it a try.  Post again, telling us a little more (like naming your Acquisition device, and your attempt at a non-DDA, MAX-influenced 3-5 DAQmx function stab at getting data.  Be sure to mention the data rates you plan to use, the range of value you expect, and what you need to do with the data.

 

Bob Schor

Message 3 of 7
(1,382 Views)

http://mkelzenb.caltech.edu/software/IV/index.html So here's the link to the existing code that my research team mainly uses, but it is becoming a hassle to use because we are not able to run the code continuously. Also, the data output is not what we need either which is why I was tasked to code another program similar to this.

0 Kudos
Message 4 of 7
(1,343 Views)

Thank you for all the helpful tips, this definitely helped me understand where I need to begin.

0 Kudos
Message 5 of 7
(1,342 Views)

@naceallen wrote:

http://mkelzenb.caltech.edu/software/IV/index.html So here's the link to the existing code that my research team mainly uses, but it is becoming a hassle to use because we are not able to run the code continuously. Also, the data output is not what we need either which is why I was tasked to code another program similar to this.


Based on this, it looks like you are using the keithley 2400 series. You can grab a driver here: 

 

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=25B255F3AA83660EE0440003BA7CCD...

 

This will allow you to interact with the instrument in LabVIEW. An even more rewarding path might be to grab the programming guide for the 2400 and learn how to make your own SCPI commands because if you know SCPI you can interact with so many instruments. 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
Message 6 of 7
(1,338 Views)

Ok great, thank you for the help!

0 Kudos
Message 7 of 7
(1,322 Views)