07-26-2012 03:50 AM
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
07-26-2012 04:59 AM - edited 07-26-2012 05:00 AM
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.