02-25-2013 10:15 AM
02-25-2013 10:26 AM
oh god! why it happens that way.. am able to run the same VI.. 😞
by using "scan from string" i wanted to take the second and sixth colum of values from text file
am attaching the graph the Vi will show
white dots are the orginal array values, red = interpolated values
got the graph after using "interpolate1D array" function on the array conataining values [ white dots on graph], red dot [interpolated] values are obtained as a separate array of values..
need all the values in a single array
02-25-2013 10:28 AM
oh god! why it happens that way.. am able to run the same VI.. 😞
by using "scan from string" i wanted to take the second and sixth colum of values from text file
am attaching the graph the Vi will show
white dots are the orginal array values, red = interpolated values
got the graph after using "interpolate1D array" function on the array conataining values [ white dots on graph], red dot [interpolated] values are obtained as a separate array of values..
need all the values in a single array
02-25-2013 10:42 AM
Araay A [ white] + aray B [red] = 100 elements [ condition for interpolation, used]
array B is obtained by intepolating array A
need an array C containing array A with array B values inserted
or is there a function to get it automatically from array A ?? 😞
02-25-2013 12:15 PM - edited 02-25-2013 12:15 PM
I recommend getting away from using the complex numbers. It doesn't look like the Sort 1D Array knows what to do with them. Instead, use the Index & Bundle Cluster Array. This will put your X-Y combinations in an array of clusters. You can then use the Build Array to combine the original and the interpolated waveforms together. Then use the Sort 1D Array to make them sorted in the X axis.
02-25-2013 08:42 PM
@crossrulz: Thanks a lot for the solution, its more simple and clever 🙂
the X axis in the grapgh is an array with values ranging from 24.5 to 34.2,
the y axis array has coresponding values for the X axis array.[both combined to give the WHITE dots in the graph]
"i have to interpolate X axis and Y axis to get a 100 values in the range [24.5, 34.5] of X axis"
i need to X axis to be[ 24.5, 24.6, 24.7, 24.8, 24.9, 25.0, , ....., 34.2, 34.3, 34.4, 34.5]
but am getting x axis after interpolation as [ 24.5, 24.5, 24.65, 24.8, 24.803, 24.95..............., 33.9, 34, 34.2,34.2]
what should i do to get the desired values of X axis and corresponding Y axis during interpolation ?
02-25-2013 09:09 PM
hehe i did it with a slight modification to the interpolation part 🙂
completed vi is attached for any one with similar doubts.
thank you all for the help
god bless