08-13-2007 05:50 PM
08-13-2007 06:15 PM
08-13-2007 06:24 PM
08-14-2007 01:48 PM
08-14-2007 02:00 PM
To answer your first question. You can clear the chart each time you run the vi in two ways:
1. On block diagram, create an empty array of DBL (Create array constant, create a DBL constant, drag DBL into array). Wire the empty array into the chart terminal or a local variable of the chart. Put this code at the beginning of your code.
2. Right click on the chart (block diagram), and select Create Method - Reinit to Default. Put this node at the beginning of your code.
Either method works. The Reinit method is best because it has error in and error out which can be wired so that the action takes place before any code is executed.
08-14-2007 02:02 PM