LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically bring cursors to center

Is there a way to programatically bring cursors to center?

Thanks,

Peter
0 Kudos
Message 1 of 4
(3,900 Views)
Peter T wrote:

> Is there a way to programatically bring cursors to center?
>
> Thanks,
>
> Peter

If you're on PC, try "Set Cursor Position.vi".
Download G Toolbox from

http://george-zou.sinacity.com
0 Kudos
Message 2 of 4
(3,900 Views)
You can do this in generic G (labview)
Read the x and y min and max
calculate the centerposition and move the selected cursor to this posistion.
A problem exists when the cursor is locked.
In that case you should calculate the index position closest to the center of the graph and move the selected cursor to those indexes.
In lv6 this is a job for a control reference.
Be aware only to write those properties that are necessary for moving the selected cursor.
Otherwise a race condition with a user moving the cursor and the program moving the cursor could occur.
greetings from the Netherlands
0 Kudos
Message 3 of 4
(3,900 Views)
As a novice LabVIEW user, I would like to send a prayer to NI to make routine dual cursors use easier. The following are obvious needs which are much too complex to implement:

1. Keep cursor inside plot area (often needed when a graph is exapanded significantly).

2. Delete Cursor: Come on dudes, this is much too obtuse.

3. Delta Cursors: It is very tricky to read out dual cursor values, when wanting to compute level, time or frequency, differences. Having to know that you must use index, etc. when cursors are locked to a point is just one pitfall. Dual cursors are so common, that NI needs to make it easier. Yes, I somestimes applaud the general purpose approach to everything, but for test and measurement applications, the simple things
should be simple. One of our engineers wasted half a day trying to figure out how to do it, and only when he say Greg M's comments, did he figure it out.

Carsten
Message 4 of 4
(3,900 Views)