LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot vectors in waveform

Hello,

 

I am trying to plot 3 different vectors into 1 simple waveform, and also make an opperation with 2 of this vectors and plot the operation into another waveform, but I don't know how to do it... can anyone help me ????!!!!!

 

thanks a lot!

 

G.Rigal

0 Kudos
Message 1 of 7
(3,608 Views)

Hi G,

 

what do you want to achieve exactly?

Do you want to plot 1d arrays (aka vector) into a waveform chart/graph or do you want to plot vectors (length&direction) into a xy-plot?

Do you want to perform waveform analysis or simple vector ("geometry") calculations?

 

What have you done so far? What is the problem you can't solve until now?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,595 Views)

Hello,

 

I am doing a proyect in which I have a waveform as part of it... i will have an input of 3 vectors, with information of an osciloscope in each of them, and I have to plot all 3 in a same waveform. In addition, with 2 of them, I will have to do an operation with each of the elements that conform the vector, and plot the result in another waveform. I just don't know how to pass a vector/vector (in this case 3) into a waveform separately, so that in the graph will appear 3 "lines".

0 Kudos
Message 3 of 7
(3,590 Views)

We'll need to get some teminology straightened out first. With respect to LabVIEW, a vector only makes sense when talking about matrices (i.e., linear algebra). What you have are 1D arrays (although vectors are, essentially, 1D arrays also). A waveform is a specific datatype in LabVIEW. It's like a cluster with three elements: start time, delta t, and a 1D array of values.

 

With respect to plotting, there are 3 types of graphs: waveform chart (akin to a strip chart), a waveform graph, and an XY graph. It sounds like what you want is a waveform graph. The waveform graph can accept waveform datatypes (a single waveform, or an array of them) as well as multidimensional arrays.

 

Based on your description it sounds like you have arrays of data, so it sounds like all you need to do is to build a 2D array from your individual arrays and wire it to the waveform graph.

 

I would suggest looking at the graphing  examples that ship with LabVIEW. They are very helpful in showing you how to use the graphs. 

Message 4 of 7
(3,578 Views)

Hi Guillermo,

 

as you didn't answer my questions I suspect you're talking of 1d arrays.

 

Did you look at the context help for the waveform graph? There is an explanation on how to wire more than one plot to the same graph...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 7
(3,577 Views)

Thanks all!!

 

I'll try and see what I can do!

0 Kudos
Message 6 of 7
(3,563 Views)

Hi Guillermo,

 

If you are plotting different vectors in a waveform Graph, I would recommend you to have a look at LabVIEW example "Wavefor Graph.vi" (search "waveforms" in the example finder). This example shows how to plot several signal in a single graph using different techniques.

 

If you are using Waveforms Charts, you have to add all points in a cluster and send the cluster to the Waveform Chart.

 

 

 

0 Kudos
Message 7 of 7
(3,518 Views)