LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph between cursors

Solved!
Go to solution

Hi, 

I have a problem with cursors.

I have a waveform graph with some signal and two cursors. (annex 1)

I would like to see a signal which is between the two cursors on the second waveform graph.

Thank you for your help

0 Kudos
Message 1 of 12
(3,546 Views)

Hi kamwoj,

 

read the cursor position with the help of a property node and then use ArraySubset to get the interesting part of the signal...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(3,536 Views)

Okey, when I use property node with cursor position and array subset waveform graph show me signal from only one cursor.

What about second cursor ?

 

kamwoj1918

0 Kudos
Message 3 of 12
(3,515 Views)

What about it? If you aren't using the second cursor to determine the array length, then you have not written the program correctly.

0 Kudos
Message 4 of 12
(3,511 Views)

I meant, if in "Cursor Position:Cursor X" there are many position cursors or only one position cursor ?

0 Kudos
Message 5 of 12
(3,503 Views)

Hi kamwoj,

 

you have to use the property "Active Cursor" to select the cursor you want to read it's position...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 12
(3,500 Views)

You first write to the Active Cursor property to select the specific cursor (i.e. 0 or 1) and then read it's value.

0 Kudos
Message 7 of 12
(3,497 Views)

So, If I would like to use two cursors ? 🙂

 

0 Kudos
Message 8 of 12
(3,481 Views)

cursor select.png

0 Kudos
Message 9 of 12
(3,474 Views)
Solution
Accepted by topic author kamwoj1918

Hi,

 

Does the attached help?

 

Don't forget to turn off "Autoscale X" for the 2nd graph and you may want have a seperate 'condition' if cursor 2 is at a lower value than cursor 1.

 

0 Kudos
Message 10 of 12
(3,472 Views)