From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

point two cursors at two different values in graph

hi

 

how to program my requirement.

i.e. get the two x-axis values automatically from the graph.New Bitmap Image.JPG

please give an idea to this.

i attached my requirement as image

 

Regards,

Hari

0 Kudos
Message 1 of 10
(4,118 Views)

Hi,

 

You can add 2 cursors by right clicking on properties of graph/chart. And right click on graph, select visible items, Cursor Legend.

 

If you want to read the x-axis cursor values programmatically use property node, Cursor position.

 

See attached.

 

Hope this helps Example_VI.png

Message 2 of 10
(4,103 Views)

First of all.. Your attachement is not visible..

 

Second.. as a general understanding.. You can create two cursors and read their corresponding positions programmatically..

 

Mirash

Coding is a combination of intelligent and creative work - someone
0 Kudos
Message 3 of 10
(4,102 Views)

 

Hi Mirash,

 

I attached again, from the below graph i like to get the X-axis values of both cursors programmatically.

when ever the two spikes occured i want the time occurence between them.

New Bitmap Image.JPG

 From the i can able to get X-axis value statically.

 

Thank you

Regards,

Hari

0 Kudos
Message 4 of 10
(4,095 Views)

Hari,

 

You can follow the same method as GITA mentioned in the above post.

 

The attached VI has the same implementation.

 

 

Mirash

Coding is a combination of intelligent and creative work - someone
0 Kudos
Message 5 of 10
(4,085 Views)

Hi Mirash

 

I did the same, I got the values by manualy moving the cursors.

But i want it by automaticaly, when ever the signals acquired cursors should point it automaticaly

and get the values without moving the cursors manually.

 

 

Regards,

Hari

0 Kudos
Message 6 of 10
(4,075 Views)

.

0 Kudos
Message 7 of 10
(4,024 Views)

thankyou so much..Your image of the implementation was so perfect!

0 Kudos
Message 8 of 10
(3,836 Views)

I have the same desire to put two vertical cursors on a graph and then choose to expand the X axis between the two cursors.  Obviously, there would also need to be a 'reset' to go back to full X axis scale.  I want to do this programmatically.  I know the tools already do this..   Thanks in advance.

Ron Brook

0 Kudos
Message 9 of 10
(1,889 Views)

You're hijacking an old thread...

 

Anyway, something like this:

XScale to cursor.png

0 Kudos
Message 10 of 10
(1,882 Views)