04-16-2015 12:14 PM
Hi, my friend and I are trying to become more familiar with Labview by creating a calcuator which almost exactly mimics the regular calculator on windows.
We have a good start, but we are having issues when it comes to looping the inputs back through and using a storage function. Attached is what we have so far, any help will be appreciated!
If anyone could even add onto what we have done and explain how it was done, that'd be extremely helpful.
04-16-2015 01:11 PM - edited 04-16-2015 01:12 PM
You should use "built array" instead of the Rube Goldberg code "build cluster...cluster to array".
I think your use of the boolean array is incorrect. You should search for true using "search array" to find the pressed button. Currently you are handling all possible 1024 bit combination, but you are only interested in cases where a single bit is set.
You should append the formatted current button value to a string contained in the shift register. Use an event structure to only spin the loop when a button is pressed, and not millions of times per second.
See how far you get.
04-16-2015 01:22 PM - edited 04-16-2015 01:22 PM
Here's is a very simple outline to get you started. (LabVIEW 2012)
Of course it would need significantly more functionality to be useful....
Good luck! 😄
12-18-2015 10:41 AM
can u pls guide me further from here onwards on how to make a caculator.... im a labview basics student learning it for the 1st time...
12-18-2015 10:53 AM
12-18-2015 11:39 AM
im stuck on how to perform the arithmatic function after creating the 1st number
12-18-2015 11:46 AM
Of course everything need to be inside the loop, right?
Search the VI templates, examples, and the forum for "state machine". See how far you get.
Do you fully understand the existing code? Just expand it.
12-18-2015 12:39 PM
how do i make the code for arithmatic function, do i use a case structure inside the same while loop in which i created the 1st no. ? or i create a separate while loop for that?
12-18-2015 12:51 PM
Everything belongs inside the same loop. Use a shift register as a stack. If this is confusing to you, you really need to start with a few simple LabVIEW tutorials. No way around it!
Over the years, plenty of "calculators" have been posted. Maybe you should also sharpen your search skills. 😄
12-19-2015 03:14 PM
Done.... thx for the help... really appreciate it...