06-23-2008 02:50 PM
06-23-2008 03:31 PM
06-23-2008 03:39 PM
06-23-2008 04:39 PM
06-23-2008 05:11 PM
Oh, I don't know that labview will not release the memory when one operation is done, e.g. after substracting a constant from an array (I thought the memory will be released). Is it because the two boolean arrays and 6 filtered arrays are used by the same subvi--filter.vi, that labview will store all 2+6 arrays in the memory, waiting to be called by filter.vi.
The sample vi is highly appreciated.
Best wishes
Camu
BTW, how to rate the answers? I cann't find it this time.
06-23-2008 05:18 PM
06-23-2008 05:22 PM
For the subtraction, the memory of the input array is re-used (not released and newly allocated), so memory wise, this is not a problem. However, doing both subtraction on the array will need 2N operations, while adding the two scalar values first and then subtracting from the array is only N+1 operations. 50% less work!.
Camu wrote:
Oh, I don't know that labview will not release the memory when one operation is done, e.g. after substracting a constant from an array (I thought the memory will be released). Is it because the two boolean arrays and 6 filtered arrays are used by the same subvi--filter.vi, that labview will store all 2+6 arrays in the memory, waiting to be called by filter.vi.
06-23-2008 05:53 PM
06-23-2008 06:15 PM - edited 06-23-2008 06:16 PM
06-25-2008 12:33 PM