Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Coordinate Cursor Movement on a Waveform Graph in LabVIEW?

Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
LabVIEW allows for multiple cursors to be placed on the same Waveform Graph.  Is there also a convenient way to coordinate the movement of these cursors on the graph?

Solution:
The Waveform Graph has a property called CrsrList which represents an array of clusters with information about each cursor. These clusters contain elements called Position.X and Position.Y which can be read from or written to. As such, you can coordinate the location of cursors by reading the position values from one cursor and then writing a constant offset to the position values of the other. This approach has been employed in the examples Single Plot Cursor Example.vi and Free Cursor Example.vi that follow.

Another method is to monitor the value of the cursor's Index propety and write that value to other cursors. This is demonstrated in the example Dual Plot Cursor Example.vi attached below.

This can also be done on a Mixed Signal Graph by using a Multi-plot cursor. More information about multi-plot cursors can be found here.

Related Links:
KnowledgeBase 23KD6EDM: How Do I Programmatically Create a Cursor for a Graph in LabVIEW?
KnowledgeBase 1XMGS7HE: How Can I Remove Cursors from a Graph in LabVIEW?
KnowledgeBase 45MB1KSF: How Do I Use the Multi-Plot Cursor?

Attachments:


Dual Plot Cursor Example.viFree Cursor Example.viSingle Plot Cursor Example.vi


Report Date: 10/28/2008
Last Updated: 02/10/2009
Document ID: 4QR9R68Z

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit