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
i would to like to build a calculator with the slide to control the operation (+-*/).

 


May anyone can help me?

 

Thanks you very much. Smiley Happy

0 Kudos
Message 1 of 12
(6,059 Views)

A calculator is more than a slide control. You need also something enter numbers, for example.

 

What have you tried so far?

What specific problems did you encounter that prompted you to ask here?

Is this homework?

0 Kudos
Message 2 of 12
(6,053 Views)

Have you started anything? Take a look at this example for some inspiration. Making a slide isn't difficult, just limit the data entry, hide the scale and put some symbols in the right position on the FP and cast the data from an enum (or use the number directly, but an enum aids in self-documentation).

 

calc.jpg

Message Edited by jcarmody on 10-24-2009 08:47 AM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 12
(6,034 Views)

jcarmody wrote:

Making a slide isn't difficult, just limit the data entry, hide the scale and put some symbols in the right position on the FP...


Or just enable "text labels" for the scale. 🙂

Message 4 of 12
(6,022 Views)
Solution
Accepted by topic author kolacmu
I've also did it. If I am not wrong it is an exercise activity from the book "LabVIEW for everyone....". I also did as Altenbach mentioned for the slider part. Attach is the vi. Try to do assignment and activities by yourself it will help you a lot. Don't hesitate to ask but I think first you must try something. This is what I've learned here in forum from these very very interesting, helpful and expert people. Smiley Wink
Naqqash
Message 5 of 12
(6,009 Views)

Thanks you !

 

It helps me so much!

 

i will do it better next time!

0 Kudos
Message 6 of 12
(5,988 Views)
Yet another homework assignment done. Naqqash, please don't encourage those who seek to get their homework done by simply posting on these boards.
Message 7 of 12
(5,956 Views)
Yes your absolutely right. Thats why I intimated him in my post. smercuria_fc thanks for mentioning it again.
Naqqash
0 Kudos
Message 8 of 12
(5,946 Views)

Naqqash_IIEE wrote:
Yes your absolutely right. Thats why I intimated him in my post. smercuria_fc thanks for mentioning it again.

Note that I wasn't implying that we can't provide hints, as long as it's clear the person is making an effort. However, I suspect that the poster is either the same person as edwardty2009 who asked the same exact question, or he has the same exact assignment. Do you really think that they "will do it better next time"? I doubt it. I suspect he'll just come up with a more clever way to ask the question to not make it seem so obvious that it's a homework assignment. 

Message 9 of 12
(5,917 Views)
100% agreed.
Naqqash
0 Kudos
Message 10 of 12
(5,892 Views)