Servo Programming

I need help programming my servo through LabVIEW that is connected to a gripper. I need the program to use with buttons on my joystick. The servo is direct connect to my roboRIO through PWM 4.
If possible could you send a picture of program?
Team 5143 GrG Robotics

You want the servo to be able to be toggled on and off off of 1 button, correct?

The snippet below will move the servo from 0 to 90 when a button is pressed. Note that when the button is released, it’ll move back. If you want it to toggle, I suggest you use something as shown in this thread: https://www.chiefdelphi.com/forums/showthread.php?t=153858&highlight=toggle

snip.PNG


snip.PNG