Our robot uses the Lego NXT Motors for its arm mechanism to lift it. There is some issue that when we attempt to run the code and raise the arm using the remote control that the NXT will brick and stop working. We believe it is an issue with our code that causes this but we are not sure what could be doing it. I attached the code for the joystick control, if anyone can help that would be appreciated.
The vi you provided does not include the SubVi's you are using so it is difficult to see exactly what is going on. The way you are handling the button presses has worked for me in the past. Though, there is another method that uses shift registers and limits the number of loops you have to deal with.
Usually when the NXT gets bricked it doesn't have anything to do with your code. Instead the cause is static discharge. Have you reviewed the FTC Guide to Addressing NXT Lockups? We had all sorts of problems with lockups last year but by purchasing a VERY short Samantha to NXT cable and adding a surge suppressor, we have had NO issues this year. With the exception of when we run the robot teathered using a long USB cable.
Hope this helps.