LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dc voltage vs time

Hi, 

 

I'm a newbie to the labview and I wanna do a basic measurement of the dc voltage source in our lab. My professor told me to compare the stability of two different voltage source. I was told to use labview to collect the voltage data at every second for an hour and save it in the excel. Then I can use the igor to analyze them. But I have no idea how to get start. We use the 8.0 on pc and I also have a lock-in analyzer measuring the voltage. Can someone give me an example of the vi file?

 

Thanks in advance.

 

Jimmy 

0 Kudos
Message 1 of 10
(3,381 Views)
Have you tried to search for existing examples or discussion on this topic?
0 Kudos
Message 2 of 10
(3,366 Views)

sure I tried. But most topics are more complicated and just skip the basic parts.... I'm looking for a similar vi file or simple steps I can follow....

 

Thanks!

Jimmy 

0 Kudos
Message 3 of 10
(3,354 Views)
0 Kudos
Message 4 of 10
(3,349 Views)
yes I tried. but still don't know how to get start.. 
0 Kudos
Message 5 of 10
(3,321 Views)
Start with the hardware. You said you have a lock-in analyzer. What is this? Is this some sort of instrument? Is this what's actually measuring the voltages and comparing them? Do you have a manual? Do you have a link for it?
0 Kudos
Message 6 of 10
(3,312 Views)

Jimmy,

 

You might be able to find an instrument driver that talks to your instrument through LabVIEW at www.ni.com/idnet. This would probably be a good place to look first. These are usually pretty straightforward to use. Hope this helps!

Verne D. // Software R&D // National Instruments
0 Kudos
Message 7 of 10
(3,299 Views)

Thanks Verne and smercurio,

 

I'm now using the Agilent 34401A multimeter to measure the voltage and I have the driver on hand.

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=014E7F05D12C6F8BE0440003BA7CCD...

There are also several examples with it but I still stuck here. I just want it can collect continuous voltages - I can time it with stopwatch.

 

any further comments are more than welcomed!

 

Thanks again

Jimmy 

0 Kudos
Message 8 of 10
(3,288 Views)

Actually, if you're using the 34401 to measure voltage then LabVIEW already comes with the instrument driver for that model. It's in the Instrument I/O -> Instrument Drivers palette. The examples are not in the palette, but they are on disk in the <labview>\instr.lib\Agilent 34401 directory.

 

You first need to make sure you can talk to it. Are you using GPIB or serial? You also need to make sure the instrument is configured to use the same. This is done using the instrument's front panel - check the instrument's manual on how to do this. If you don't have the manual, you can download it from Agilent's web site.

 

Start with something simple. Open the "Read Single Measurement" example. Select the correct VISA resource name: if you're using GPIB select the instrument based on its address; if you're using a serial connection, select your COM port and configure the baud rate, etc. - unless someone has changed the instrument's configuration, the defaults should work. Run it. Do you get a reading? If so, half your battle is done.

 

If you can get a reading using the example then you can loop it by placing a loop around the  "Read Single Point" VI in the example VI. Connect a Stop button to the loop's condition terminal and place a timer in the loop so it takes a reading at (approximately) your desired rate. You can add a waveform chart to the front panel and connect it to the same point as the "Measurement" indicator on the example.

 

Post back when you've gotten this far. 

 

 

P.S. If you haven't already done so, you should go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

Message 9 of 10
(3,281 Views)
That really really helps!!! I use GPIB. and I'll give it a try tonight. I'll let you know what difficulty I meet. thanks again!
0 Kudos
Message 10 of 10
(3,275 Views)