Go to Post You know, sometimes it is really cool to be a geek! - dlavery [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 30-01-2016, 17:05
Nevada Reno's Avatar
Nevada Reno Nevada Reno is offline
Registered User
FRC #5430 (Piraterobolution)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Pittsburg,california
Posts: 9
Nevada Reno is an unknown quantity at this point
Labview and pneumatics

We have two problems;
We are trying to use one joystick button for firing the shooter motors and loading solenoid. We need to know how to create a time delay so the motors can reach speed before the solenoid pushes the ball to the shooter motors. Look at the attached image to see what we have tried. The delay function works, but the motor reacts to the delay and starts and stops repeatedly
Problem 2:
We want to use one joystick button, so when we press the button the solenoid/piston extends. When we press the button the second time, we want the piston to retract
Attached Thumbnails
Click image for larger version

Name:	boulder shooter code.png
Views:	48
Size:	25.7 KB
ID:	19923  
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2016, 19:02
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview and pneumatics

Here is another way to do problem 1. Replace the extra motors with solenoid commands instead. This is handled in Periodic Tasks.vi rather than the Teleop.vi http://www.team358.org/files/program...tofTimedAction

For problem 2 you want to incorporate a button toggle: http://www.team358.org/files/program...onToggleAction
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-01-2016 at 19:47.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2016, 21:29
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Labview and pneumatics

Thank you Mark,
Found the button toggle example. but the button start of timed action link doesn't work, and if you scroll to the bottom of the page the last example is double solenoid

Jack Gillespie
Lead Mentor 5430
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2016, 21:32
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Labview and pneumatics

Mark found the button timed link by clicking on a different link and scrolling down. Think the kids will have it worked out by tomorrow. Thanks
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2016, 13:26
Nevada Reno's Avatar
Nevada Reno Nevada Reno is offline
Registered User
FRC #5430 (Piraterobolution)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Pittsburg,california
Posts: 9
Nevada Reno is an unknown quantity at this point
Re: Labview and pneumatics

Can we change the existing while loops wait time to fit our purpose and can we change the default motor that is given to what we have setup or do we not need to worry about that drive motor that is pre-set. Thank you for all of your help by the way.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2016, 13:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview and pneumatics

It's just an example so you should remove anything you aren't using.
The Wait times can all be changed, and extra steps can be added to the flat sequence structure by clicking on the end border and selecting Add Frame.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 31-01-2016 at 13:41.
Reply With Quote
  #7   Spotlight this post!  
Unread 03-02-2016, 10:43
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Labview and pneumatics

The Programming team is stuck. They have tried using the periodic tasks Vi to control the motor and the solenoid. The solenoid works as expected but the motor is surging and cutting off in relation to the timed tasks. I am attaching a picture of the Periodic task vi.
Attached Thumbnails
Click image for larger version

Name:	2016-02-03 07_35_29-Periodic Tasks.vi Block Diagram on 2016 Robot Project.lvproj_Target.png
Views:	24
Size:	119.0 KB
ID:	19952  
Reply With Quote
  #8   Spotlight this post!  
Unread 03-02-2016, 11:06
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Labview and pneumatics

Quote:
Originally Posted by Jack Gillespie View Post
The Programming team is stuck. They have tried using the periodic tasks Vi to control the motor and the solenoid. The solenoid works as expected but the motor is surging and cutting off in relation to the timed tasks. I am attaching a picture of the Periodic task vi.
Are you setting the motor in any place other than Periodic Task.vi? (Such as in Teleop.vi)

You should only have one setter in any system. Any more is asking for trouble.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #9   Spotlight this post!  
Unread 03-02-2016, 11:15
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Labview and pneumatics

Yes the motor is only in Periodic Vi
Reply With Quote
  #10   Spotlight this post!  
Unread 03-02-2016, 11:22
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Labview and pneumatics

Quote:
Originally Posted by Jack Gillespie View Post
Yes the motor is only in Periodic Vi
Did you disable the safety config?
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #11   Spotlight this post!  
Unread 03-02-2016, 11:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview and pneumatics

The Safety neutralizes the PWM outputs if the motor setting isn't adjusted at least every 100ms.

See where the Safety is enabled in Begin.vi
It needs to be either Disabled in Begin.vi (just change the input) or Disabled at the beginning of the sequence and re-enabled as the last step of the sequence.

The same thing holds true for handling motors in Autonomous.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2016 at 11:32.
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 04:18.

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