LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursors on XY graphs

Hey

 

I’m trying to create some cursors inside XY graphs. The problem is that the X axis is defined as absolute time format (24-hour HH:MM:SS, D/M) as you can see in the image.

 

With this format I can´t define correctly the X position of the cursor through the Cursor List property node. And if I change the node to read I always got the same X position - 3,4031E+9 - independently of the time where it is located (image below).

However, in the cursor legend, the X position shows the correct time of the cursor.

 

Is there any way to create the cursor with these settings or do I have to forget about absolute time to use them?

 

 

Thank you very much for your attention.

0 Kudos
Message 1 of 3
(2,567 Views)

You can always use the Cursor Index to set the position.  If you want to use the X position that is fine, just remember that it takes about 10 sig figs to see the current second since the value is number of seconds since Jan 1, 1904.  One year is Pi*10^7 seconds so 100 years is Pi Billion seconds.

0 Kudos
Message 2 of 3
(2,561 Views)

Thank you for your reply.

 

So that’s why the X position value is so high, and so, mere seconds don’t really make the difference… Maybe it’s better to forget this method then.

 

I didn’t get your suggestion about the Cursor Index.

 

I added the VI that I’m using for tests. What I was looking to accomplish is to create cursors at every 2 minutes for example. In the waveform graph I just create new cursors for iterations multiples of 10, but in this case it’s really simple to define the position of the cursor.

0 Kudos
Message 3 of 3
(2,555 Views)