05-03-2007 11:25 AM
I've written a VI that allows the user to import a dataset, view it on a graph, and then use cursors to "filter" the range of data that I'm interested in, by sending the cursor.index values from the first graph to an array subset function which feeds a second graph. The problem is that I'd like to provide the user the ability to position the cursors on the first graph both visually - by dragging - (for "course" control) AND by entering the desired values directly into the cursor legend (for fine control). The problem is that I cannot find a way to do this, since I have to have the Lock Ring set to “Lock to Plot” in order to capture the index information. According to the documentation, the only way to be able to position the cursors via the Cursor legend is to set the Lock Ring to “Free”, which means the index values are rendered useless, since the cursor is no longer locked to the plot. If I leave the Lock Ring in "Lock to Plot", and enter a value in the cursor legend, it does move the cursor, but not to where it should. If I enter a value an x value of 9.0 for cursor 1, the cursor goes to 10.2638. The next time I enter 9.0, it goes to 9.82794. I don't understand what the issue is. Is there a way around this?
05-04-2007 10:53 AM
Dan:
I am not sure I completely understand what you are trying to achieve. With a cursor, you would like to be able to set the cursor position by entering x & y coordinates, as well as freely move the cursor around on the graph. Is this correct?. Please let me know so that I can better assist you.
Regards,
Rudi N.
05-04-2007 11:33 AM
Yes Rudi: What I want is for the operator to place the cursors by dragging them (just eye-balling it). The, if they see that the Y cursor (horizontal) is at 10.234, and they want to make it 10, they could simply enter that value in the cursor legend, and the cursor would be placed exactly at 10. The only way to do this seems to be to select the “Free” option for the cursor. However, in order to use the first graph to set the boundaries of the second graph, I have to use the Cursor Index from the first as an input to the Array Subset that feeds the second graph. In order to use the Cursor Index, the first graph has to have its cursor Lock Rings set to “Lock to Plot”. Am I making this any more understandable, or just rambling?
05-04-2007 01:15 PM
05-04-2007 04:12 PM
05-04-2007 04:25 PM
05-04-2007 05:52 PM