LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am plotting to waveforms. V1(t) and V2(t) vs time. I want to plot V1(t) vs V2(t) realtime. Is there an easy solution to this?

I am plotting to waveforms, V1(t) and V2(t) vs time. I want to plot V1(t) vs V2(t) realtime. Is there an easy solution to this?

I am also attaching both of my attempts so far. In the first one i get a plot of the instantaneous values of V1 vs V2, however what i want is a continuous curve of V1 vs V2.
In the second one i am getting to save my values in the arrays, however it cannot be fed to the x-y plot.
Any help will be truly appreciated.



Download All
0 Kudos
Message 1 of 2
(2,782 Views)
Rudresh,

What you want to do, is use an X-Y Graph. Right click on your Front Panel (FP) and goto Graph.  The third control is X-Y Graph.  Drop this onto you FP and switch over to the block diagram.  This graph takes a cluster as an input.  

Add a Bundle function to your block diagram and wire its output to the input of the X-Y Graph.  The bundle will take 2 inputs and both of these inputs need to be arrays.

Take your V1(t) and V2(t) Waveforms and use the "Get Waveform data" or an Unbundle function so that you can extract the data array from the full waveform cluster (which include t0 and dt data).  Pass these into the bundle function that we created above and this should make a continuous graph for you.

Let me know if you have further questions.

Rishi L
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,762 Views)