This widget could not be displayed.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to build a simply calculator?

Solved!
Go to solution

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

Somil Gautam
Think Weird
Message 11 of 12
(902 Views)

...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

 

CalcSubVI.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Message Edited by RER on 10-26-2009 07:54 AM
Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/
Message 12 of 12
(875 Views)