LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a graph by subtracting successive array elements in labview

I have an array 'A1' of 'N' elements. I want to create an  array 'A2' of 'N-1' size having first element as A1[1] - A1[0], 2nd element as A1[2] - A1[1], and so on .

 

then I want to  plot the A2 array on the graph for analysis.

 

i.e i want to subtract the successive elements in an array and plot a graph of the subtracted values. 

 

please help me 

 

Thanks in advance. 

0 Kudos
Message 1 of 3
(4,158 Views)

Use Array subset with 1 as index/offset, wire both arrays to a '-' and the result is an array with a[1]-a[0],a[2]-a[1] and so on.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(4,153 Views)

Hi,

 

Take a look at the attached example.

 

Hope it helps.

Paulo

Message 3 of 3
(4,151 Views)