LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph interception

Solved!
Go to solution

Good Day

 

which function in vi is suitable to use to know  the graph interception of coordinate 'X'  for cursor C refer to diagram attachment?

 

problem:  how to place the cursor to the interception point with known Y value....without insert value manually into the start index(0)

 

 

attached also my vi for reference

 

Best Regards

 

Tarmimi 

 

 

 

0 Kudos
Message 1 of 10
(4,129 Views)

Good Day 

 

Any help or advise guys?

 

 

Best Regards

Tarmimi

0 Kudos
Message 2 of 10
(3,988 Views)

To place a cursor: http://digital.ni.com/public.nsf/allkb/280875F12A53D4FD8625699E006F0BBA

 

To answer your other question, you'll want to traverse your array of data to find the point where it changes from being less than the cursor value to greater than.

0 Kudos
Message 3 of 10
(3,954 Views)

Good Day Natasftw

 

thank for your reply

 

How can i transverse the array data? can you give an example

 

best regards

Tarmimi

0 Kudos
Message 4 of 10
(3,946 Views)

Do a greater than/equal to the cursor value.  This should provide you with an array of booleans.  Create a loop to run through these values to see when they switch from true to false and vice versa.  Save an array of those switches as an output for your loop.  You'll have all of the interceptions.

0 Kudos
Message 5 of 10
(3,941 Views)

 Hi natasftw

 

very sorry i  still not get the idea (refer attachment) due to my lack imigination in convert into labview programming .... can you help me by  giving a simple example using vi...

 

Bes regards

Tarmimi

0 Kudos
Message 6 of 10
(3,928 Views)

Very quickly thrown together example.  You can change the values in the data array.  You can change the cursor value to be whatever you'd like.  The boolean array is just for show.  You don't need it in an actual application.  This just helps you see each of the elements in the array is checked against the cursor and makes it easy for you to scan the array to see when it changes from below to at/above the cursor.  The final array is a list of all the elements where the value in the boolean array changed.

 

In the future, attach the code you're working with rather than a picture that shows a very limited piece of your actual work.

0 Kudos
Message 7 of 10
(3,904 Views)

Good Day natasftw

 

 

thanks for your reply

 

I did attach my vi code on first posting, re attached again

 

I try  combine your  vi with mine but still not getting  the  value of X axis with known value of Y...

 

if you run  example the test measurement exponential.vi  for  cursor C i know the value of Y=0.501176 and X=30, but what i to know is the interception graph when  Y still 0.501176, and X unknown (refer interception of graph picture)

 

i can change the start index(0) but it seem to response to known X value

 

 

 

0 Kudos
Message 8 of 10
(3,869 Views)

Good Day

 

Any advise on this topic?

0 Kudos
Message 9 of 10
(3,771 Views)
Solution
Accepted by topic author ahmadtarmimikassim

Good Day

 

I think i solve the problem, refer to attachement , solution :using the negate

 

you can also refer to example from http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:ex/q/graph%20cursor/

 

 

 

Thank you natasftw for your kind help and advise

 

Best Regards

Tarmimi

0 Kudos
Message 10 of 10
(3,711 Views)