取消
显示结果 
搜索替代 
您的意思是: 

CLACULATOR BOTTON INTERFACE

I want to use a front panel with number bottons looking like the windows calculator.

I have made this front panel with the bottons, but it doesn't work right.Instead of the numbers to add from left to right,every new number that I press erases the last one so I am left only with a single digit number.

I am sure this is a common feature in many VI's.

Does anybody have an example how to do this ?

Thanks
0 项奖励
1 条消息(共 6 条)
5,684 次查看
Hi tzviel,

If you're using a numeric indicator rather than a string, the trick is to shift the value displayed (x10) and add the value of the button pressed.

I hope the attached VI is useful.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 项奖励
2 条消息(共 6 条)
5,671 次查看
I would recommend starting with the Formula Express VI. There are also other examples that use a calculator interface.

Hope that this helps,
Bob
0 项奖励
3 条消息(共 6 条)
5,662 次查看
Thank you for replaying.

SandmanUK, do you have this example in LV 7.0?

Tzviel
0 项奖励
4 条消息(共 6 条)
5,637 次查看
Hi tzviel,

Here you go:

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 项奖励
5 条消息(共 6 条)
5,631 次查看
It works pefectly !

I just need to use a decimal point also -I think I can make it by myself.

Tzviel
0 项奖励
6 条消息(共 6 条)
5,622 次查看