View Single Post
  #7   Spotlight this post!  
Unread 21-01-2015, 00:09
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 58
mshafer1 is an unknown quantity at this point
Re: Linear Actuator Programming Help

I have attached a snippet (LabVIEW generated picture that can be dropped back in LabVIEW to turn back into code) that shows one way of doing this, if I understand what you are saying correctly, you need the linear actuators to stay on their course until either the the driver sends a different command, or the limit switches say to stop. I think I have shown that in this code, if you have any questions, you could send me a private message and I would be more than happy to help you get more figured out.

I attached my original snippet, then realized that I had a typo, when I went back to fix it, I also realized that it could be simplified a little. Using the shift register in this way is really the same as using the feedback node, just that some say that this way is cleaner.
Attached Thumbnails
Click image for larger version

Name:	linearActuators.png
Views:	54
Size:	67.2 KB
ID:	17915  Click image for larger version

Name:	linear2.png
Views:	43
Size:	56.9 KB
ID:	17916  
Reply With Quote