12-15-2009 10:15 PM
Solved! Go to Solution.
12-15-2009 10:37 PM
12-16-2009 02:37 AM
12-16-2009 04:41 AM
What was suggested above technically will work but the whole point that Dennis was trying to make is that you shouldn't write your program in this way. LabVIEW is a dataflow language, not a sequential language. Take the time to actually learn the techniques associated with dataflow programming and use them. It is a VERY powerful programming paradigm. Sequence frames should be used very sparingly and only for very specific reasons. Generally they should only be used for sequences that will always run the complete sequence and where no data flow exists. The perfect example is the technique used to time a block of code. A three frame sequence is used with a Get Time in the first and last frames and the code you want to time in the middle frame. A single frame sequence is often used to impose article dataflow. Other than that try to avoid using sequence frames. Do yourself, and anyone who may need to maintain your code later on, and learn dataflow programaming.
Also, the above example is not very good code since it is using multiple local variables. In general local and global variables should be avoided since they also break the dataflow programming paradigm and can lead to race conditions in your code.
12-16-2009 01:40 PM
12-17-2009 02:50 AM
Hello Mark,
I read what you have written and accept it. Thank you for your advice. I will try to learn the data flow programming and deliver better results.
Regards,
Nitzy