08-26-2007 12:18 PM
08-26-2007 01:06 PM
Yes, create an reference to the current VI and use an "invoke node" with method "Default values.Reinit all". I added an event case that performs this operation if the VI is stopped or the reset button is pressed.
Attached is a quick modification. You should really use an event structure instead of a loop without wait. Currently, your VI recalculates the same results with the same old input array millions of times per second, consuming all CPU in the process. You only need to calculate the results (1) when the VI starts and (2) if the input matrix changes.
You might also want to use a matrix control (instead of a 2D array) to avoid all these coercion dots.
08-26-2007 01:20 PM - edited 08-26-2007 01:20 PM
Of course you don't even need to create the reference to the current VI, simply place an invoke node, select the right class (see image) and the right method.

Message Edited by altenbach on 08-26-2007 11:21 AM
08-26-2007 01:39 PM
Thank you very much Altenbach.
Very instructive and concise.