01-31-2020 12:38 PM
I am trying to programmatically read the multiplot cursor Y values from 2 (or more) separate plots but my numbers do not agree with those in the cursor legend. The simple test VI I created does not work as I was expecting. Is there something wrong in the code? Or a better way of doing what I am trying to accomplish ?
Solved! Go to Solution.
01-31-2020 10:17 PM
I think this does what you want:
Note the second loop isn't important - it was just easier for me to test this way (I could stop generation but move the cursor and get updates).
I think this is probably a bug in LabVIEW - you should open a service request.
It seems like when you set the Plot property, it doesn't update for the call to PosY in the same node, but Property Nodes are supposed to execute from the top down.
Separating the calls into two nodes (I added a 20ms wait here, but whilst typing this I tested 5ms and that worked too. Removing the waits broke the behaviour again) allows what you're looking for.
As to an alternative, if you have access to the data on the graph, you could look up values based on your shared X location, or you could create two cursors (one per plot) and then move the second to always sync with the first (using an Event Structure, for example) then their Y readings should be correct. Or you can just do this ^^.
02-03-2020 08:19 AM
This works. Thank you.