LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Calculator similar to MS calculator

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.

 

 

0 Kudos
Message 1 of 10
(4,326 Views)

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.

Message 2 of 10
(4,314 Views)

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! 😄

 

 

0 Kudos
Message 3 of 10
(4,306 Views)

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

0 Kudos
Message 4 of 10
(4,129 Views)
Show what you have done and explain where you are stuck.
0 Kudos
Message 5 of 10
(4,120 Views)

im stuck on how to perform the arithmatic function after creating the 1st number

0 Kudos
Message 6 of 10
(4,097 Views)

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.

0 Kudos
Message 7 of 10
(4,087 Views)

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?

0 Kudos
Message 8 of 10
(4,063 Views)

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

Message 9 of 10
(4,054 Views)

Done.... thx for the help... really appreciate it...

0 Kudos
Message 10 of 10
(4,011 Views)