LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stacked Lines

Hi Everyone,

I have inverted the waveform that comes from my first graph and i would like to stack the red lines in the other graph and i attached the output that i want to achieve.

Can someone show me the way on how to do it?

Thanks:)

0 Kudos
Message 1 of 8
(2,820 Views)

Is the data in a single 1D array, and the segments are always increasing?

0 Kudos
Message 2 of 8
(2,779 Views)

Hi Tood_Lesher,

 

Yes it is 1D array and segment is increasing.

graph1.png

 

 

 

 This is example of how it is supposed to be.graph.png

0 Kudos
Message 3 of 8
(2,771 Views)

@rainy01 wrote:

Hi Everyone,

I have inverted the waveform that comes from my first graph and i would like to stack the red lines in the other graph and i attached the output that i want to achieve.


This looks like a trivial problem. Can you attach a VI that contains your raw data? What is the datatype?

 

Basically, what you seem to want to do is similar to "unwrap phase", except you turn over at 256 or similar.

0 Kudos
Message 4 of 8
(2,746 Views)

Here's a simple example (LV 8.2) that generates simulated wrapped data in the first loop and then reconstructs the original data in the second loop. (If the data contains noise e.g. if there could be small up-downs-up that are not jumps, you need to adjust the code a little bit.)

 

 

0 Kudos
Message 5 of 8
(2,739 Views)

Hi, altenbach

 

Thanks for your help. I tried example but couldn't get the expected waveform. I attached my VI.

Really appreciate it if you can help me.

Download All
0 Kudos
Message 6 of 8
(2,719 Views)

Seems to work just fine...

 

 

(I changed to read from jpeg instead of bmp, because that's what you attached)

Message 7 of 8
(2,668 Views)

Hi altenbach,

 

Yes it is working now.Thanks! 🙂

(I converted to jpeg because i couldn't upload my bmp file..sorry)

0 Kudos
Message 8 of 8
(2,658 Views)