LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW with agilent 34410a

Hi,

I feel stupid, but I'm a new user to LabVIEW and I'm trying to measure current consumption on products with different voltage input. So I got two multimeters Agilent 34410A, one for voltage and one for current. But I have been trying to connect the multimeters with LabVIEW, but I don't know how to read data from the multimeters. Every time I think I got something new, it gives me error.

 

So I would be thankful if someone could help me get started with this program.

 

/Victor Gustafsson

Message 1 of 15
(7,778 Views)

Hi vic,

 

to get started you should go here!

 

To get device drivers you should look here...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 15
(7,771 Views)

Thanks Gerd

 

Thank you, I was looking for something like that, but NI's pages aren't that clear. Smiley Happy

 

But I'm still having problems with controlling to different multimeters at the same time, it won't let me open two multimeters of the same kind at the same time.

 

/Victor

0 Kudos
Message 3 of 15
(7,740 Views)

Hi Victor,

 

what is "it"? Smiley Wink

 

- How do you connect those two multimeters?

- Did you select different "addresses" (aka "VISA resource names") for them in your VI?

- Did you set those DMMs to different addresses (like you have to do for GPIB connections)?

 

Show your code and we might be able to help...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(7,727 Views)

Hi Gerd,

 

It is LabVIEW 🙂

 

I have them now connected with USB cables one from each multimeter, but i also have GPIB cables with USB interface.

Right now I have used examples to build a system that gives me results that i want. But i'm having problems getting LabVIEW to save my results into a table.

 

And one more question: When i measure the consumption i have to change the voltage manually cause my voltage source is really old, so is it possible to get the results in to a table so that LabVIEW takes for example every result for every half volt?

 

Thanks,

 Victor

0 Kudos
Message 5 of 15
(7,712 Views)

Hi Victor,

 

"now connected with USB cables one from each multimeter"

Do these "USB cables" emulate a serial port? Or do you need device-specific drivers to communicate to the DMMs?

 

"i'm having problems getting LabVIEW to save my results into a table."

Ok - but how can we help?

 

"is it possible to get the results in to a table"

Yes.

 

Hint:

To get useful help you have to name the problems. And show us what you have programmed so far...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(7,710 Views)

Hello,

 

I'm not sure what you mean, but they are both connected with different cables to different usb ports on the computer.

 

And about the table, i dont know how to make a table, can't find it anywhere. Now i got the results straght to the graf, though i know it doesnt save old results.

 

 

I have added what i have done so far using examples.

 

thanks

/victor

 

0 Kudos
Message 7 of 15
(7,701 Views)

Hi vic,

 

your attachment is missing a subVI "currentcunsumption.vi"... And it uses two "VISA resource names" so your USB connection probably emulates RS232 ports.

 

To get a "table" you could go this way:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 15
(7,696 Views)

Hi Gerd,

 

Thanks for the example, i got a table and a graph now. But how do i get the table to put X and Y in different columns and is it possible to export the table to excel?

 

 

/victor

0 Kudos
Message 9 of 15
(7,675 Views)

Hi vic,

 

my example exports 2 different columns for x- and y-values...

And for exporting to Excel I would recommend to use WriteToSpreadsheetFile!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 15
(7,671 Views)