10-26-2009 05:06 AM
hi
one little modification i would like to make in the code posted by Naqqash_IIEE
see, you are running the while loop unnecessarily for so many times in a second, which is shooting up ur cpu usage.
better, use wait for front panel activity function. this will prevent the unnecessary the cpu usage.
check the attached pic
10-26-2009 07:53 AM - edited 10-26-2009 07:54 AM
...and why not go the whole hog and wrap the whle thing up in a funky little subVI.
Doing this ensures your code is readible, it helps you with the reuse of existing code... and it looks cool.
WIN WIN WIN
If you are new to LV, have a look at the following link which discusses the creation and use of subVIs
http://zone.ni.com/devzone/cda/tut/p/id/7593