LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get multiple "position Y" from "Multi-plot" cursor as Array

Im looking for a good way to get multiple "position Y" value from "Multi-plot" cursor on XY Graph.

I believe you can see what I want by following image.

 

MAIN.png

Demo.png

 

 

In this case, getting "NaN" is really important and very useful for my application,

Using Cursor.Plot property is one of solution but, I don't want to change focusing plot to others

because it make reading "NaN" on others impossible.

 

I have already read following thread but couldn't solve my problem.

Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor

Similar to what I want to do but positionX should be written from property node.

Multiplot Cursor Values

 

Im really appreciate if you give me a advice.

 

Thanks,

Emboar

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 1 of 9
(3,391 Views)

Hello Emboar,

 

You can not get the data including (NaN) from cursor information.

(NaN) indicates that the array size is different depending on the plot, and the data refers to an empty part.

 

If you want to get the NaN data using the cursor, you need to align all array size of plot at first. It is necessary to concatenate NaN data to missing array elements. Then you can get the NaN data from orignal X axis data using Index info from Cursor List Property node.

 

0 Kudos
Message 2 of 9
(3,332 Views)

I tried to reproduce this problem like below. 

When I read the cursor position from Cursor List >> Index, The ploted date are empty. 

 

Cursor-Position.png

 

 

I concatinated NaN date to empty array elements like below. The way can get the cursor postion date from Index.

 

Cursor-Position2.png

 

Message 3 of 9
(3,323 Views)

Hi Ueno-san, thanks for your kindness!!
I was looking for a way to get the values from property node but,
second method looks suitable for my application : )


Each data I have doesn't have same interval X so,
a little exertion may be required to implement your suggestion.

I'll try it out, thanks and have a nice day!

 

YT

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 4 of 9
(3,302 Views)

self reply

 

There is no simple way to get multi-positionY from one "Multi-plot" cursor.

we need some effort to implement the feature.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 5 of 9
(3,279 Views)

Maybe it's a bit to late, but here is a solution.

Matanu_0-1609323654395.png

 

0 Kudos
Message 6 of 9
(2,673 Views)

Hi guys, where I can find block with NEAR label. Isn't it your own VI? Thanx

0 Kudos
Message 7 of 9
(2,407 Views)

It is

Just look for the closest element in an array and output it's index

0 Kudos
Message 8 of 9
(2,400 Views)

you could use the array functions theshold and interpolate in a row 

 

 

threshold-interpolate.png

 

notice: I pulled down the XY Graph plot legend 2 entries too far (plot 7 instead of plot 5) ... therefore there are now  2 phantom entries in the Cursor Legend

 

the only way I know to remove them is to delete the XY Graph Indicator an spawn a new one, or drag Emboar_Dymax snippet from Message 1 of 8 to the Blockdiagram once more

 

0 Kudos
Message 9 of 9
(2,372 Views)