ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add multiple cursors

Hi,
I am using the Peak Detect vi to find all the valleys in a signal. I then want to use property nodes to put a cursor on each peak. I don't know how many peaks will be in a given signal (usually between 5-15).

I have code that works, but I'm wondering if I have chosen the best solution. I have just added more cursors than I think I'll possibly need (only 5 included in my sample) and then just link to them in order.

The downside of my solution is mostly stylistic... it looks like a mess, both on the front panel with all the cursors and in the block diagram with all the property nodes. Is there a more elegant solution that I should consider?

thanks,
mike
0 Kudos
Message 1 of 3
(3,695 Views)
Hi mike

You could display your signal in a XY-Graph. There you have the possibility to show your peaks also, because if you're using Peak Detect.vi you have the location and the amplitude of each peak. This you can display also in a XY-Praph.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 3
(3,678 Views)
user the "cursor list" property value of the graph, see the attached image.

-Joe
0 Kudos
Message 3 of 3
(3,664 Views)