LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I make a cursor that only moves in one direction?

Solved!
Go to solution

Dear all,

I have an XY graph. I would like a cursor that appears as a vertical line which user can drag horizontally. Effectively this would be the regular cursor but lacking the horizontal line. I would, or course, like to also get the position of the vertical line on the x axis. Is there a simple way to accomplish this, say with the built in cursor, or will it require trickery methods?

Best regards,
Ed

0 Kudos
Message 1 of 4
(4,102 Views)

I couldn't understand your requirement very well .. please elaborate more ..

 

You can read complete text in help document of LabVIEW for cursor properties.. Little help can be as below

 

Right-click anywhere in the cursor legend, select Create Cursor, and select a cursor mode from the shortcut menu. The cursor position is defined by the cursor mode.

 

  • FreeMoves the cursor freely within the plot area, regardless of plot positions.
  • Single-PlotPositions the cursor only on the plot that is associated with the cursor. You can move the cursor along the associated plot. Right-click the cursor legend row and select Snap To from the shortcut menu to associate one or all plots with the cursor.
  • Multi-PlotPositions the cursor only on a specific data point in the plot area. The multi-plot cursor reports values at the specified x-value for all of the plots with which the cursor is associated. You can position the cursor on any plot in the plot area. Right-click the cursor legend row and select Snap To from the shortcut menu to associate one or all plots with the cursor. This mode is only valid for mixed signal graphs.

 

Right-click the cursor legend row and select from the following options from the shortcut menu to customize the cursor:

 

  • Watch—When the cursor mode is Multi-Plot, associates one or more specified plots or all plots with the cursor. The multi-plot cursor reports values at the specified x-value for all of the plots with which the cursor is associated.

    If you initially select individual plots to watch and then select Watch»All Plots instead, the cursor begins to report values for all plots. If you then deselect All Plots, the cursor reports values for the plots you initially selected.

  • Snap To—Locks the cursor to a plot. When the cursor mode is Single-Plot, you can snap the cursor to one or all plots. When the cursor mode is Multi-Plot, Snap To only affects how the cursor moves along the x-axis.
  • X Scale—Sets the x-scale of the cursor. This option is valid only if the cursor mode is Free.
  • Y Scale—Sets the y-scale of the cursor. This option is valid only if the cursor mode is Free.
  •  

    BR, HS

    Message 2 of 4
    (4,092 Views)
    Solution
    Accepted by topic author otheredward

    Select a cursor style that only shows a vertical line, set the y-cursor position to e.g. infinity (+inf) so the "gap" won't show.

     

    You can read the x-position using a property node or even better from the event terminal of "cursor move" event.

    Message 3 of 4
    (4,084 Views)

    Sounds like a good plan. I'll believe it your recomendation should do extacly what I would like.

     

    Thanks,

    Ed

    0 Kudos
    Message 4 of 4
    (4,066 Views)