LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extraction of a portion from graph

Solved!
Go to solution

I have to extract a portion from Graph .

I know the starting and ending point in x-axis and i have to know the y-axis values.

I have used "extract a portion of signal " express VI  but am not getting the values correctly. 

 

There is a picture with this, in which the portion in red box is the part i have to extract.

@nk
0 Kudos
Message 1 of 7
(3,335 Views)
0 Kudos
Message 2 of 7
(3,319 Views)

Hi uday,

 

Thank you for the help .

But in this VI we uses cursor to extract a part from graph. I have to extract the parts automatically.

 

I have got the start and end points of X-axis with me now I have to extract the part i tried with "Extract a part from signal " express vi but it is not giving a proper extraction.

 

Thank you

@nk

@nk
0 Kudos
Message 3 of 7
(3,250 Views)
i am not sure of express vi, can you post the vi and screenshot? with expected extraction and what you got?
-Did you try the vi in the above mentioned link?
Thanks
uday
0 Kudos
Message 4 of 7
(3,236 Views)

Hi uday ,

Thank you for a fast response .

The VI in the above link shows how to extract a portion of graph with use of cursors. In my VI the user won't do anything . Everything should happen automatically.

First of all.

1.I have detected the peaks in my graph using a peak detector VI. This process have given me the position of peaks in terms of time (i.e x-axis units).

2. I have added a constant offset time like 0.005 sec to each time value and then I provided that value as the starting point of extraction .

3.The length till which the extraction should be done is also kept constant.

4. I just need the amplitude vales of that particular part so that I can use them for my further calculations.

 

For clear information I am adding  a picture of my graph in which the areas I have to extract is perfectly marked inside red box.

@nk
0 Kudos
Message 5 of 7
(3,227 Views)
Solution
Accepted by topic author @nk

Use get waveform subset


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 6 of 7
(3,218 Views)

@nk wrote:

For clear information I am adding  a picture of my graph in which the areas I have to extract is perfectly marked inside red box.


That picture does not help, because we don't know wat the datatype of your graph is (or even what kid of graph it is). Is it a waveform graph or an xy graph? What is the datatype if the data (dynamic, array, waveform, etc.).

The procedure will depend on the datatype and graph type.

 

 

Show us your actual VI with some typical data.

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