# LabVIEW

cancel
Showing results for
Did you mean:

## How plot Current VS Voltage (XY graph??)

Hello,

I obtain current and voltage by analog inputs of an USB 6009, and I need to plot it in the same graph (C vs V).

I attachment a sample of the graph that I want.

Thanks

Message 1 of 8
(9,432 Views)

## Re: How plot Current VS Voltage (XY graph??)

http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/types_of_graphs_and_charts/

There are many examples which comes with LabVIEW itself, one particular I would point out is Waveform Graph.VI.

I hope this helps, If you have any more questions just reply back

Kudos are welcomed

-------------------------------------------------------------------------------------------------------------------------------
Thanks & Regards,
Kunal Raithatha.
CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D 🙂

Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
located in the upper right corner of the front panel or block diagram" ...If you know any
-------------------------------------------------------------------------------------------------------------------------------
Message 2 of 8
(9,424 Views)

## Re: How plot Current VS Voltage (XY graph??)

Can anyone  tell me how to plot a graph in labview with any other parameter other than time on x-axis. I am not able to plot v versus i graph, as I guessed it is only able to plot v versus time and i versus time!

Message 3 of 8
(8,744 Views)

## Re: How plot Current VS Voltage (XY graph??)

You can plot anything you want on the x-axis when you use the XY Graph. A single plot on an XY graph is simply a cluster of an X array and a Y array. Have you looked at the shipping example for an XY Graph? Have you taken any of the basic tutorials? If you drop an XY Graph on the front panel and then go to the block diagram, the Context Help window will show you the datatype when you move the mouse over the terminal.

It is not enough to simply say you are unable to do something. You should attach your code.

Message 4 of 8
(8,740 Views)

## Re: How plot Current VS Voltage (XY graph??)

pkbigboss@gmail.com wrote:

Can anyone  tell me how to plot a graph in labview with any other parameter other than time on x-axis. I am not able to plot v versus i graph, as I guessed it is only able to plot v versus time and i versus time!

You can edit the label of the x axis to say anything you want. The string "time" is only the default label. If the X values are equally spaced, all you need is define x0 and dx for a plain waveform graph. If the x values are not equally spaced, you need an xy graph.

You really need to be a bit more clear explaining what you want. Attach your code and some typical data. Show us what you get and explain what you want instead.

All this is well defined. No guessing needed (especially if your guess is wrong!). 😄

Message 5 of 8
(8,731 Views)

## Re: How plot Current VS Voltage (XY graph??)

Same here. Have you find anyway to do that?

Message 6 of 8
(503 Views)

## Re: How plot Current VS Voltage (XY graph??)

Hi ak9,

how is your question related to LabVIEW?

Best regards,
GerdW

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

## Re: How plot Current VS Voltage (XY graph??)

from the front panel insert a XY graph

then on the diagram insert CLUSTER - Bundle

it will bundle 1d array for X and 1D array for Y and plot on XY.

RKO
Message 8 of 8
(466 Views)