08-17-2009 12:44 PM
What I need is specific VI names not general info, if there are any. Or do I have to, using math trig VIs, do the vector math one step at a time??
ssmith
08-17-2009 01:02 PM - edited 08-17-2009 01:03 PM
08-17-2009 01:04 PM - edited 08-17-2009 01:12 PM
Here is a Snippet.
I take two 1-d arrays of doubles that have the U and V vector components. I convert to complex find the total and divide by the number of components. then I divide to find the average and then convert the complex back to polar to get the Uavg and Vavg values.
I think this will do 3d but I have not thought about to hard or tested either.
Ben
08-17-2009 01:24 PM
I have version 8.6. The vector is wind speed and wind direction. It has not yet been resolve into it's u and v components. This is the first part of the problem. Then averaging the u and v components is the middle. The last part, and again difficult part is merging the u and v components back into a speed and direction vector.
ssmith
08-17-2009 01:26 PM
But Ben!
Those look rubes. Why not just average each vector seperately?
Good point. Lets just call those two VIs a test to see if Ican create a snippet.
Ben
08-17-2009 01:29 PM
Wind speed is "r" and the direction is theta.
The example above is the answer to your question turned inside out.
Ben
08-17-2009 01:29 PM
Correct! Once the single vector is resolved into it's components each component is averaged. Then you take the average of the u and v and then then construct back to a single vector.
ssmith
08-17-2009 01:30 PM
ssmith490D wrote:Correct! Once the single vector is resolved into it's components each component is averaged. Then you take the average of the u and v and then then construct back to a single vector.
ssmith
Aggreed.
Ben
08-17-2009 01:51 PM
08-17-2009 02:01 PM
Because until now I didn't have the info you just gave me! (The name of the vi) LOL! Thanks alot. I'll try it and let you know.
ssmith