LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform xy graph

Solved!
Go to solution

I found a lot of posts concerning this problem, but I really cannot understand how to do it - I must be dumb...

 

I simply have two waveforms, acquired at constant, equal sampling, and I want to plot them in an XY graph.

I tried everything I could think of,  but I cannot do it...

 

0 Kudos
Message 1 of 9
(5,173 Views)

Just pick a waveform graph. The XY graph is the wrong pick for your requirement.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 9
(5,167 Views)

Hi alzyx,

 

use a waveform graph.

A "XY graph" is something different - and there is no "waveform XY graph" in LabVIEW…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(5,166 Views)

Sorry if I wasnt clear - 

I really need the waveforms plotted as one as a function of the other, that is discarding the time info (which is the same in both).

 

This is really impossible in LV ?

 

0 Kudos
Message 4 of 9
(5,157 Views)

You can use the Get Waveform Components primitive to take only the Y value of both the waveforms and the plot one against the other. How are you getting the waveform data? Are you using LabVIEW DAQ functions? In that case you also can acquire the data as a simple array (Just a suggestion).

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 9
(5,154 Views)
Solution
Accepted by alzyx

Hi alzyx,

 

so you want to plot something like "Y vs X" on a XY graph?

Then just read the context help for the XY graph. It will show you the datatypes the graph is expecting!

 

In clear words: you need to get the Y data of both waveforms and create a cluster of those two arrays:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(5,152 Views)

thank you and sorry,

I'm not used to waveform data, and I didnt know hot to move...

really, I just solved it  a second ago by using "unbundle", which as third output produces the y array: using two unbundle for the two waveforms, and re-bundling them, it worked also.

 

thank you!

0 Kudos
Message 7 of 9
(5,142 Views)

Strangely, get waveform components doesnt work:

 

the waveform (acquired by an oscilloscope) is indicated as a bundle of three elements (t0, delta t, 1Darray of reals), and get waveform components complains, saying that source is a cluster of 3 elements, and sink is waveform.

 

Unbundle works instead!

 

0 Kudos
Message 8 of 9
(5,116 Views)

Hi alzyx,

 

the waveform (acquired by an oscilloscope) is indicated as a bundle of three elements (t0, delta t, 1Darray of reals), and get waveform components complains, saying that source is a cluster of 3 elements, and sink is waveform.

Right now would be a good time to actually attach your VI!

 

- When GetWavefromComponents complains about the datatype then your datatype probably isn't a LabVIEW waveform, but just a cluster of 3 elements.

- We don't know anything about your scope and we don't know the VIs used to read data from that scope. Either attach VIs or check for yourself!

- Always have the context help open, it will tell you correct names and datatypes of any wire. Use those words when you just write text about your VI to be as precise as possible!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 9
(5,113 Views)