06-27-2016 03:40 AM
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...
Solved! Go to Solution.
06-27-2016 03:59 AM
Just pick a waveform graph. The XY graph is the wrong pick for your requirement.
Norbert
06-27-2016 04:00 AM - edited 06-27-2016 04:00 AM
06-27-2016 04:12 AM
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 ?
06-27-2016 04:17 AM - edited 06-27-2016 04:18 AM
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).
06-27-2016 04:20 AM - edited 06-27-2016 04:22 AM
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:
06-27-2016 04:27 AM
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!
06-27-2016 04:36 AM
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!
06-27-2016 04:39 AM - edited 06-27-2016 04:39 AM
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!