LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the point index of the position of the red line in the waveform graph

Solved!
Go to solution

How to get the point index of the position of the red line in the waveform graph

0 Kudos
Message 1 of 10
(1,603 Views)

Use "Map Coordinates to XY" - Invoke node

 

Map Coordinates to XY.png

Greets, Dave
0 Kudos
Message 2 of 10
(1,599 Views)
What I mean is to find this feature point through an algorithm, such as derivative , etc. Can you give me an example based on a waveform diagram?
0 Kudos
Message 3 of 10
(1,595 Views)
Solution
Accepted by topic author Chihl

Like this?

 

Find Signal Event.png

Greets, Dave
0 Kudos
Message 4 of 10
(1,574 Views)

If you create a cursor that is locked to a plot, the cursor index property will give you the index of the array element at that position. (only works if the cursor is locked to a plot, of course!)

 

You asked for the "point Index", not the x or y value. Right? If not, please be very specific!

 

 

altenbach_0-1661531383678.png

 

0 Kudos
Message 5 of 10
(1,539 Views)

It didn't come into my mind, that the TO wants to find that point manually, but you are right - probably this was the question.

Because of the very unspecific question I was assuming that he wants to analyze a monotonic falling signal with a negative peak and wants to find the index of the smallest value within the negative peak.

If the signal doesn't meet these assumptions, the algorithm will fail.

 

 

Edit: No, he was asking for an algorithm

Greets, Dave
0 Kudos
Message 6 of 10
(1,515 Views)

@daveTW wrote:

Edit: No, he was asking for an algorithm


The red angled line (not even an arrow!) is partially on the graph and partially on the diagram and this does not point at any "index". The end of the red line does not even point at any particular point of the blue curve, but points at some nowhere land below a dip and the next hill. The red line is just a decoration and has no "index". Each point of the blue line has an index.

 

The curve looks like a very low order polynomial soon after, so maybe they want to find out where the glitching ends and the smooth curve starts. That would be simple.

 


@daveTW wrote:

Edit: No, he was asking for an algorithm


Well, the sentence "What I mean is to find this feature point through an algorithm, such as derivative , etc." does not really narrow it down because there are many features and the red line does not point at anything in particular.

 

Let's wait for detailed clarifications before we waste even more time guessing. 😄

 

altenbach_0-1661610559041.png

 

0 Kudos
Message 7 of 10
(1,508 Views)

@Chihl wrote:
What I mean is to find this feature point through an algorithm, such as derivative , etc. 

If you do a least absolute residual (insensitive to outliers!) third order polynomial fit of all data (or a least square fit of most of the data, i.e. the last 90%), you can easy tell from the difference where "features" are, whatever that means.

 

altenbach_1-1661612350283.png

 

Message 8 of 10
(1,503 Views)
Thank you for your enthusiastic replies, I have found the answer I was looking for in so many replies. I've accepted the first answer that I think fits my idea, thanks again! !
0 Kudos
Message 9 of 10
(1,447 Views)

@Chihl wrote:
 I've accepted the first answer that I think fits my idea, thanks again! !

You can also mark more than one post as answer if applicable. Nothing wrong with that..

0 Kudos
Message 10 of 10
(1,419 Views)