Hi Scott,
I'm assuming what you are doing is connecting your robot and your controling machine via a wireless router/transmitter and you are just doing TCP/IP communication.
When you mentioned about combining the two pieces of code and that the code stopped working, could you please describe the detailed symptom of the code "not working"? Such as, is it a networking time out? Do you receive any specific errors? Do you get the data, but it's not the data you are expecting to see?
It's always helpful to put some indicators to see what's the data you are receiving for debugging purposes.
Also, up on inspecting your code, it looks like you are doing quite a few Type Cast operations. For example, for your button information from the joystick, you are getting a cluster of booleans. The better way to transmit the data is probably easier to convert it to an array of booleans (Array->Cluster to Array), and go from there.
Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support