LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a cursor to a waveform graph on mouse click

Solved!
Go to solution
Hi, I have a waveform graph which is displaying data. I would like to be able to click on a point on that graph during runtime and add a cursor at that point. Any suggestions? I have been trying to figure this out for a while but I'm completely stuck. Thanks a lot, Ty
0 Kudos
Message 1 of 10
(5,532 Views)

How many samples are you expecting to have on this graph?

 

How big of a graph are you thinking you are going to need?

 

How good of resolution do you need for placing this cursor?

 

 

Tim
GHSP
0 Kudos
Message 2 of 10
(5,517 Views)

Which part are you having problems with?  Adding a cursor, or positioning it? Have you taken a look at the "Programmatically Control Cursors" example that ships with LabVIEW? That shows you that you basically have to manipulate the Cursor List property.

0 Kudos
Message 3 of 10
(5,511 Views)
0 Kudos
Message 4 of 10
(5,505 Views)

Here is an example that I made to do exactly what I think you want.

Tim
GHSP
0 Kudos
Message 5 of 10
(5,501 Views)
Hi Tim, I only have LabView 8.5... I'm not sure how to open the file. I would really like to see it; is there any way you could save it in a version so that I can open it? I'm not totally sure how that would work, but if you can, it would be much appreciated! Thanks, Ty
0 Kudos
Message 6 of 10
(5,460 Views)
Solution
Accepted by topic author Ty Berry
Message 7 of 10
(5,447 Views)
Perfect! Thanks so much Tim. That is exactly what I needed.
0 Kudos
Message 8 of 10
(5,427 Views)


Then please mark Tim's message as the solution to your question rather than your own thank you message.  If you go to the options menu to the upper right of your message, you'll be able to unmark your message as the solution.  Then you can go to his message and properly mark it as the solution.

0 Kudos
Message 9 of 10
(5,417 Views)

I did try to do that but (clearly) clicked the wrong message by accident. I tried to un-do it but when I click on the "options" link it just takes me to the top of the page rather than opening the options menu... I'll try again with a different browser though! (using Firefox at the moment... is this a known issue?)

 

Edit: There we go! Worked on Safari. Thanks again Tim!

0 Kudos
Message 10 of 10
(5,415 Views)