LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign a value to a button

Solved!
Go to solution
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.i am using labview 8.6robot reference :http://www.surveyor.com/SRV_info.html                          http://www.surveyor.com/                          http://www.surveyor.com/cgi-bin/robot_journal.cgi 
0 Kudos
Message 1 of 3
(5,525 Views)
Solution
Accepted by topic author sumanth

Hi sumanth,

you can use an event strucutre. Create one case for each button and insert the correct number to send. If you press one of your buttons, then you can send the data to your robot.

 

Mike

Message 3 of 3
(5,516 Views)