Roberto's suggestion is a good one if your program isn't too complicated.
I find that using multiple threads works better for me because I have a lot going on in my programs. Generally, I run my user interface in the main thread (the one created automatically when CVI starts a program). I then create other threads to handle things like instrument control, data acquisition, computation and data logging.
Is one approach better than the other? Not really, it all depends on how your program is structured and how data is acquired and manipulated. I choose to use the multithreading because I have a need to log large chunks of data while making a lot of measurements. It all comes down to what makes sense for what you are doing.
Martin Fredrickson
Test Engineer
Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128