06-25-2009 06:35 PM
Hi,
I am having some difficulty feeding one (magnitude, angle) continous stream of data to a polar plot. How can I select the index number of the array that inputs to the polar vi?
The picture sort of shows what I'm after, but shows only 3 clusters into an array at n = 0 ,1, 2. Instead, I have a single feed , and I can control the index # indicator based on the angle using some math operators. How can I input the index #?
Any help is appreciated.
Thanks!
06-26-2009 12:49 AM
You would built your data array in a shift register of feedback node.
A "continuous stream" is a poorly defined concept, because ultimately you will run out of memory. A better idea would be to simply graph the last N values for example?
I don't understand your teminology. What do you mean by "index number" in this context? Makes mot much sense. 😉
06-26-2009 10:40 AM
The magnitude and angle data output stop when it reaches 360 deg. So the picture 2.jpg is what I have currently, but the data it captured only at array index n=0.
I want to capture:
mag/angle when angle is 0 to array n=0
mag/angle when angle is 15 to array n =1
mag/angle when angle is 30 to array n =2
and so on until angle is 360 (n = 24)
If I have 24 clusters it would be easy to stick those into an array, but I have just 1 cluster where the magnitude and angle continue to change til angle = 360.
I'm not sure if I'm explaining well enough? Thank you for your response!
06-26-2009 12:51 PM
Here is my goal, in figure 3.jpg, to be able to control the index # of the array. So when angle is 0, 0/15 = 0 and index = 0. When angle is 15, index = 1, etc. I'm not sure what array function to use to be able to do this.
06-26-2009 01:03 PM - edited 06-26-2009 01:06 PM
You seem to have a few misunderstanding of arrays and graphical programmings in general. I would recommend to start with a few easy tutorials.
In any case, you have several options, here are two:
Of course you would need to make sure the values change with each iteration of the loop. Instead of controls (which is silly!), make the values a function of [i], for example.
06-26-2009 01:18 PM
Altenbach -- Thanks for your help!! I'll give this a try
06-26-2009 01:24 PM - edited 06-26-2009 01:25 PM
Here's an example of a spiral with 15 degree increments.
06-26-2009 01:27 PM
06-26-2009 01:29 PM
06-26-2009 01:30 PM