LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add integer value of two buttons?

Solved!
Go to solution
how to add integer value of two buttons (any button) in VI and display it in output text box? i have attached example program, but i know its wrong.. please help
0 Kudos
Message 1 of 14
(6,240 Views)
Solution
Accepted by topic author sumanth
Try this
Tim
GHSP
0 Kudos
Message 2 of 14
(6,235 Views)
was this what you needed to do?
Tim
GHSP
0 Kudos
Message 3 of 14
(6,225 Views)

You have "2" on the buttons, so maybe you want to add the numbers on the buttons? If so, you have to read the Boolean text, as shown.

 

 

add button numbers.gif

Message Edited by Broken Arrow on 10-07-2009 11:03 AM
Richard






0 Kudos
Message 4 of 14
(6,210 Views)
What are you ultimately trying to do here? We may be able to help more if we understand the whole picture.
Tim
GHSP
0 Kudos
Message 5 of 14
(6,194 Views)

aeastet wrote:
What are you ultimately trying to do here? We may be able to help more if we understand the whole picture.

 

Right. A button doesn't have an integer value, so we're just guessing here.
Richard






0 Kudos
Message 6 of 14
(6,190 Views)

Broken Arrow wrote:

aeastet wrote:
What are you ultimately trying to do here? We may be able to help more if we understand the whole picture.

 

Right. A button doesn't have an integer value, so we're just guessing here.

Unless it's a calculator. Sort of. Maybe that's what the poster is trying to create.

0 Kudos
Message 7 of 14
(6,177 Views)
thanks for reply. i am trying to assign an integer value to a button and the button should send the assigned integer value to TCP/IP write, only when the button is pressed. i am able to send data using string control (as shown in the attachment) but i want to replace it with several buttons. for example, if i enter 2 in string control, this data will be sent to a robot (robot has wifi card)  through tcp/ip protocol, it moves front. 3 will make it to move back, 8 is left, 6 is right. this numeric data is already burnt into blackfin processor of the robot. so just by entering numbers in labview can make my robot move in specified direction. can you please help me to create a button with value and convert it into string and send it to tcp/ip write. this should happen only when the button is pressed. because, if i enter numbers in string control, it dosent looks good..... if i have buttons... i think my VI will look good and hitech.
0 Kudos
Message 8 of 14
(6,147 Views)

i am using labview 8.6

robot reference :http://www.surveyor.com/SRV_info.html

                          http://www.surveyor.com/

                          http://www.surveyor.com/cgi-bin/robot_journal.cgi

0 Kudos
Message 9 of 14
(6,146 Views)
This should get you started. I gave you the start of a simple state machine. I tried to document everything but if you have questions let me know.
Tim
GHSP
Download All
Message 10 of 14
(6,118 Views)