LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting corresponding data from xy graph

Solved!
Go to solution

Hi

 

Appreciate anyone who can give me some idea on how to solve this. I've tried browse through the examples here but none seems to meet my requirement.

 

I'm trying to get the corresponding y value in a graph. Say, if my user specify windspeed 5.5 m/s in my GUI, the corresponding power output will automatically appear in the indicator array. This has to be done without using cursor. Any idea on how to do this?

 

thanks

 

0 Kudos
Message 1 of 13
(4,128 Views)

you can add to an array by using a build array function

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 2 of 13
(4,123 Views)

Hi..

 

My obtained data for windspeed is all in round numbers....therefore i need to get the corresponding output y (values) of these (x values) 5.3m/s...6.6m/s.. 7.4 m/s from the graph..do u mean i just have to connect a build array to the build graph?

 

Thanks

0 Kudos
Message 3 of 13
(4,119 Views)
Solution
Accepted by topic author Guitar

 


Guitar a écrit :

I'm trying to get the corresponding y value in a graph. Say, if my user specify windspeed 5.5 m/s in my GUI, the corresponding power output will automatically appear in the indicator array. This has to be done without using cursor. Any idea on how to do this?

 


 

1- This is a job for the "interpolate 1D array" function (in the array subpalette). See attachment.

2- As soon as possible, try to forget the use of Express vis. 

3- No need to multiply by one in the For loop 

Chilly Charly    (aka CC)
Message 4 of 13
(4,111 Views)

something like this?

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 5 of 13
(4,105 Views)

 

 

Thanks Harold & Chilly !!

0 Kudos
Message 6 of 13
(4,098 Views)

Hi

 

Just for learning's sake...what if a 1d array of data x is keyed in and the result in data y is needed (1d array) ?  The input of the threshold in threshold 1d array cannot be anything with 1d array or 2d array...Is there any alternative besides using Express VI for interpolate and threshold 1D?

 

Curious

 

Thanks!!

0 Kudos
Message 7 of 13
(4,074 Views)

I don't understand your question. I believed that this was exactly what was illustrated in the vi attached to my previous message. 

Chilly Charly    (aka CC)
0 Kudos
Message 8 of 13
(4,064 Views)

Hi

 

Then let me explain it this way....Can I change the "Numeric" input in the VI  to a 1D array if a few data (from y axis) is needed from the graph? Or else, I have to key in and change the value of "Numeric" a few times...

 

Appreciate your opinion

 

Thanks!!

0 Kudos
Message 9 of 13
(4,050 Views)

 


Guitar a écrit :
Then let me explain it this way....Can I change the "Numeric" input in the VI  to a 1D array if a few data (from y axis) is needed from the graph? 

Add a for loop, and wire in your "few data" 1-D array. Wire out the interpolation result as 1-D array. Auto-indexing will do the job !

 

Chilly Charly    (aka CC)
0 Kudos
Message 10 of 13
(4,001 Views)