11-17-2009 07:48 AM
HI
I generate a series of sine waves and store the values as an array, next i need to select only those points in the array that correspond to the amplitude of the sine wave i specify. Could anybody suggest how i go about it?
11-17-2009 07:52 AM
Can you please post what you did so far? Post a sample so that it will be easy for us to help you and also you can learn fast.
Mathan
11-17-2009 08:01 AM
Hi Mathan
The while loop generates the amplitude values and i need to select the coresponding points from the array generated in the for loop.
11-17-2009 08:12 AM - edited 11-17-2009 08:13 AM
11-17-2009 08:25 AM - edited 11-17-2009 08:26 AM
11-17-2009 01:28 PM
Thank you for the replies. In the vi you modified GerdW i have now included an array(array 3 in vi) such that i can obtain all the points at which the amplitudes were at any specified value, i.e at the max/min i should have 6 points and at any other amplitude i should have 12 points that have the same amplitude. For the abritrary values i have set, the InRange function seems to be coercing all the points(1000 in this case) to one amplitude, as seen in array3.
I am sorry i have not mentioned why i intend on doing this. I generate a 3D spiral that i need to overlay on a stack of 2D images of fixed z increments, so for every image i will have one or 2 points where the trajectory intersects each image, i need to determine the corresponding (x,y) for each of the points such that i can overlay them on the image.