Go to Post Build a robot that isn't 119.999999 lbs - Peyton Yeung [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-02-2015, 16:13
GreyHayze GreyHayze is offline
Registered User
FRC #4283 (RoboAces)
Team Role: Programmer
 
Join Date: Oct 2013
Rookie Year: 2012
Location: Granville, Ohio
Posts: 1
GreyHayze is an unknown quantity at this point
Post Flat Sequence Structure autonomous with limit switches

Hello all,
We are working on a film reel style auto. But we are trying to figure out how to use a limit switch instead of using the wait function to call the next step in the routine. We are still fairly new to labview and would appreciate any help.

Thanks again everyone
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2015, 16:26
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: Flat Sequence Structure autonomous with limit switches

Place a While loop in the frame you want to leave when the switch is pressed. Inside the loop, put a 10 ms Wait so you don't keep things like communication and timed tasks from running. Also inside the loop, read the switch. Wire the value of the switch to the Stop terminal of the While loop.

Now, when the sequence reaches that frame, it will stay there until the switch is activated.

If your switch is active low and reads FALSE when pressed, change the loop's red Stop terminal to a green Continue terminal.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi