LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

operate with vector in a formula and plot in xy graph

hi, I have a question. I have the formula you can see attached in this post. My block gives an array of 200 values to 'h' input, and 200 values to 'err' input. There's any way to do the operations in order? ie, operating with first 'h' and 'err' array value give first 'out_up' and 'out_down' array value, second inputs give second outputs, etc.

 

I want see overviewed in the xy graph three plots, and all them have the same x axis. This x axis has 200 different values, and for each one of them i want it corresponding y axis value. For that reason, i need make it 'in order'. Could somebody help me please?!

 

Thanks in advance!

 

Javi

0 Kudos
Message 1 of 2
(2,324 Views)

an XY graph can take a cluster array input, where each cluster has two 1D arrays. It cannot plot when the cluster has a 1D array and a 2D array as in your picture.

 

If you want to plot them all on a signle graph, and they all have the same X axis,  you can try using Waveform chart or graph. Here, you cannot set the X axis data.

 

you can build a 2D array of 'h', 'out_up', 'out_down' and wire to a waveform graph or chart.

 

if your Pr array is periodical, you can covnert each 1D array into a waveform data type, by wiring it to 'Y' element and 'dt' will be difference between successive values of 'Pr' elements.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 2 of 2
(2,317 Views)