06-30-2019 10:36 PM
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.
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.
Im really appreciate if you give me a advice.
Thanks,
Emboar
07-01-2019 08:19 PM
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.
07-01-2019 11:59 PM - edited 07-02-2019 12:01 AM
I tried to reproduce this problem like below.
When I read the cursor position from Cursor List >> Index, The ploted date are empty.
I concatinated NaN date to empty array elements like below. The way can get the cursor postion date from Index.
07-03-2019 03:34 PM
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
07-05-2019 02:44 AM
12-30-2020 04:21 AM
Maybe it's a bit to late, but here is a solution.
04-29-2021 04:59 AM
Hi guys, where I can find block with NEAR label. Isn't it your own VI? Thanx
04-29-2021 06:55 AM
It is
Just look for the closest element in an array and output it's index
04-30-2021 02:26 AM - edited 04-30-2021 02:27 AM
you could use the array functions theshold and interpolate in a row
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