LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

selecting a trace from a waveformgraph

Hi,

I'm programming a vi which shows several 10 traces. But I want to select
only two of them to do some calculations with.
Does anyone know how i can select two single traces out of ten from a
waveform graph with a cursor to do calculations with? The graph is filled
with 10 traces (or 10 1d-arrays) as a 2d array.

Thanks for your help and -or advice.

Robert
0 Kudos
Message 1 of 3
(2,572 Views)
Hi,
I think there are 2 solutions:
1. You may use properties of your cursors to get the index of the plot with which the cursor is associated.
You must create the "property node" of your graph and select "Properties->Cursor->Cursor Plot" from its pop-up menu. This will return the index of the plot in your 2D array to which the cursor is connected.

2. Another idea is to use some numeric indicator (or indcators) in which user enter the indecies of traces for selection. This indicator will show you the indecies of 1D arrays in your 2D array which you must extract.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 3
(2,572 Views)
> I'm programming a vi which shows several 10 traces. But I want to select
> only two of them to do some calculations with.
> Does anyone know how i can select two single traces out of ten from a
> waveform graph with a cursor to do calculations with? The graph is filled
> with 10 traces (or 10 1d-arrays) as a 2d array.
>


Just to elaborate on the other post. If the plots have good names, then
a listbox is a good way of selecting them.

Also, if you want to give the user feedback while the move the cursor
around, first make sure to set the cursor to snap to plot. You can also
read out the cursor plot and display the plot name and perhaps the
timestamps or amplitudes of the plot at that index.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,572 Views)