07-11-2010 12:52 AM
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
Solved! Go to Solution.
07-11-2010 01:02 AM
you can add to an array by using a build array function
07-11-2010 01:15 AM
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
07-11-2010 01:22 AM
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
07-11-2010 01:28 AM
something like this?
07-11-2010 01:30 AM
Thanks Harold & Chilly !!
07-11-2010 09:51 AM
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!!
07-11-2010 11:31 AM
I don't understand your question. I believed that this was exactly what was illustrated in the vi attached to my previous message.
07-11-2010 09:40 PM
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!!
07-12-2010 12:56 PM - edited 07-12-2010 12:57 PM
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 !