View Single Post
  #1   Spotlight this post!  
Unread 19-01-2015, 16:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Linear Actuator Programming Help

Quote:
Originally Posted by Luid101 View Post
Ok.The code is in the timed tasks vi.
Is it outside all of the timed while loops in that vi, or is it inside one of them? If it's inside a while loop, which one is it in?

Quote:
The code at the left side is a toggle switch for the joystick input. If you could show us a better way of coding it we would be grateful!
If you can tell me what you want the code to do, I'm sure I can show you an efficient way of telling LabVIEW how to do it. The phrase "toggle switch for the joystick input" isn't enough detail for me to know what you want.

Quote:
I am pretty new to labview programming so I am not sure if there should be a wait or not, I saw it there so I didn't tamper with it.
There are specific places for wait functions, and specific reasons for using them. Besides the timed loops in Periodic Tasks, the only place I think I have put them in a robot program would be in a flat sequence in Autonomous Independent (or a flat sequence in Periodic Tasks, but that's a very special case).
Reply With Quote