05-29-2017 10:12 PM - edited 05-29-2017 10:13 PM
@cbutcher wrote:
It might be worth noting, for readability if not performance (I'm not sure what the performance effect would be) that you could replace the entire left side with something like this:
One problem here is the fact that you change the datatype of the "frame" element. A better way would be to only rebundle the changed elements, e.g. as follows (top of image, bottom is original code):
Yes, we do too many operations, e.g. add or divide some of the elements where we throw away the result, but the code is simpler. We probably would need to look at the code outside of this subVI for further improvements. Maybe there is a "in-place" solution where we don't need to change array size (delete from array). it seems not sufficient to look at this subVI in isolation.