08-12-2007 10:38 PM
08-12-2007 10:49 PM
The key is the uninitialized shift register which maintains the value between calls. By default, all VIs are set to be to non-reentrant, which means they will share the same data space.
To do what you originally wanted, you will need to set the VI to be reentrant (File>>VI Settings>>Execution).
I suggest you check this out for some more information on how this can be used.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
08-13-2007 12:07 AM