LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform graph:move cursor automatically to know coordinate

Solved!
Go to solution

Good Day

 

Can i know how to move cursor automatically in the waveform graph

 

example: i have known Y =2 what is the value of  x is...

 

which properties in property node should i use?

 

attached also my vi (Coordinate of XY data using cursor)

 

 

Best Regards

Ahmad Tarmimi

0 Kudos
Message 1 of 12
(4,074 Views)

How does your data look like? In the most general case, ther can be many values where Y=2, so which one do you want?

What if no value is 2? (currently you are simulating a sine, which never exceeds 1!)

 

Why do you allow cursor drag?

 

In any case to move a cursor you would set the position property node to "write" and write the desired coordinates to it.

 

MAny times it is easier to lock the cursor to a plot. Now all you needs it set the "cursor index" property to move to the desired position.

0 Kudos
Message 2 of 12
(4,064 Views)

Good Day altenbach 

Thank for your fast reply..

 

my data is in exponential waveform(sinewave is just example)

 

 

For my condition if i know the coordinate value of Y(amplitude),   but  unknown is the coordinate value  of X(time)

 

For my personal opinion the easy method automatically drag cursor with known coordinate value of y , thus get the coordinate value X

 

 

Can you please gave me an example in VI...?

 

Thanks for your strong support 

Best regard

Ahmad Tarmmi

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

Is the exponential function increasing or decreasing with x? can you attach some typical data?

0 Kudos
Message 4 of 12
(4,034 Views)

Hi

 

Atttach as per request

 

exponential waveform( double exponential waveform)

 

Best Regards

Tarmimi

0 Kudos
Message 5 of 12
(4,027 Views)

Good Day

 

I was trying to program the cursor automatically but it does'nt seem working for me..Smiley Sad

 

Can you please advise me on this matter... 

 

Attached also my study pupose vi

 

Best Regards

Ahamd Tarmimi

Spoiler
 

 

0 Kudos
Message 6 of 12
(3,997 Views)

You need to write to the position property instead of reading from it. Here's a quick draft.

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

Hi altenbach

 

Thank for the good vi example..

 

can i ask  question..? how can i get  value of X at the same Y value  with diferent intersection C(refer diagram)

 

Do i need to create an extra cursor and program  cursor automatically to that intersection?

 

 

Best Regards

Tarmimi

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

Yes, just get a third cursor. Threshold array only works for nondescending segments, so you would start at the max, negate Y, and search for -0.1 or similar.

0 Kudos
Message 9 of 12
(3,952 Views)

Good Day altenbach

 

Thanks for the information..

 

 

But i don't quite understand the statement "you would start at the max, negate Y, and search for -0.1"

 

Can you please give me some hint in VI example

 

Best Regards

Ahmad Tarmimi

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