> I would like to calculate the sum of the squares of differences of two
> arrays.
>
You might look around in the statistics and probability functions to see
what is closest to what you are looking for.
If you need to make your own. Wire the two arrays to a subtraction
node. No loop needed and you now have an array of differences between
the elements of the arrays. Now you have an array of values and you
want the sum of squares. In case you really want the RMS, there is an
analysis VI for that, but if you really want the squared value, then you
can split the wire and wire to a multiplier node. That will square each
element and produce an array of squares of differences. Finally, you
can wire to the Sum node. If I understand what you original
ly wanted,
these three nodes will do it.
If you are using it in quite a few places, select the three nodes and
under Edit choose Make subVI. Fill in a description, an icon, and you
are done.
Greg McKaskle