You clearly need to familiarize yourself with dataflow!
It is not a good idea to use indicators as controls via local variables and break all dataflow by creating disconnected code segments. Adding sequences to enforce the broken dataflow as suggested just complicates things even more!
Here's the right way: 🙂
This is a literal tranlation of your code!. Most likely you want to remove the "1" diagram constant or set it to "0".
In LabVIEW, the first element is element zero. 🙂
For some easy reading, see also:
Message Edited by altenbach on 07-10-2007 02:57 PM