Go to Post It makes you wonder what sort of sick, twisted mind would do such a thing to all those innocent teams out there... - 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 31-01-2010, 19:43
ROFLcopter's Avatar
ROFLcopter ROFLcopter is offline
who was phone
AKA: Robert Grizzell
FRC #2364 (Oregon RoboHawks)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Oregon, IL
Posts: 30
ROFLcopter is on a distinguished road
Send a message via AIM to ROFLcopter Send a message via MSN to ROFLcopter Send a message via Yahoo to ROFLcopter
A Multitude of Programming Questions

Keep in mind this is my first year programming for FRC, but not my first year programming graphically. (I use Wiremod for Garry's Mod, not sure if you guys have played it.) I'm progressing very well currently. LabVIEW makes things simple.

I'm looking for a number of crash course, step-by-step tutorials on how to make things work. If you can find tutorials and other such items on other websites, I'd appreciate the links. This might be quite the lengthy thread.

Pneumatics

1. What sort of VI palette should I use to control the spikes? General Motors, Relays, or Solenoids? Which one is the most simple and will allow quick implementation?


2. I hear the older Festo devices (larger ones) have a high failure rate. Is it recommended to use a newer valve produced by a different company?


3. I do not know much about Relays in general. Their purpose, functions, and advantages are all unknown to me. Is there a detailed tutorial that explains how they work?


4. I want to program an automatic pressure release that takes place 2 seconds before the end of a match. Ben Zimmer, who provided the LV Mastery videos, touched base on a subject like this. Has anyone made a subVI that I may implement? If not, doe anyone have any idea of the placement and design to make this happen in this year's code?


Encoders

1. We are planning to use the encoders that were provided for this year's gearboxes. Is there a wiring diagram that would thoroughly explain how to wire one into the 2010 Control System as well as an Encoder tutorial that would provide some insight into how I would implement this into this year's code?


2. The encoder rate is in (something)-per-ticks. I had no luck finding a subVI here that would convert it from '(something)-per-ticks' to 'feet-per-second'. How would I convert to 'feet-per-second'?


General Knowlege

1. I did my best to find a function in LabVIEW similar to a Boolean Latch switch (Toggle Switch), but for a True/False. I want to press Button 1 to change the statement to True and press it again to make it False. Is the Case Selector in a case structure already toggle or do I need to create more code?




I'll be asking more questions as they arise, any valuable input is appreciated very much!

Last edited by ROFLcopter : 31-01-2010 at 20:08.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2010, 20:19
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: A Multitude of Programming Questions

I'll answer quickly the questions I can.

Pneumatics:

1. Spike relays are controlled using the Relay palette. Period.

3. Relays give a way to provide either power or ground (*) to a circuit. The Spikes are dual relay modules, and that makes them good for controlling a low-current motor in either direction.

4. I might do this by putting something in the Periodic Tasks vi to note the time when the robot goes into Teleoperated mode, then activate the pressure release after 118 seconds have elapsed.

Encoders:

1. See the LabVIEW Encoder Example. It has exactly what you asked for.

2. Provide a DistancePerCount when you Open the encoder.

General Knowledge:

1. Implementing such a toggle function is easy to do, but hard to describe. Look at Feedback Nodes, which can be used to do something only when an input changes value.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2010, 02:30
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: A Multitude of Programming Questions

Quote:
Originally Posted by ROFLcopter View Post
General Knowlege

1. I did my best to find a function in LabVIEW similar to a Boolean Latch switch (Toggle Switch), but for a True/False. I want to press Button 1 to change the statement to True and press it again to make it False. Is the Case Selector in a case structure already toggle or do I need to create more code?
Quote:
Originally Posted by Alan Anderson View Post
General Knowledge:

1. Implementing such a toggle function is easy to do, but hard to describe. Look at Feedback Nodes, which can be used to do something only when an input changes value.
Look in the LabVIEW Getting Started Window >> Examples >> Joystick Button Latching Example
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Final Programming Questions PWHSrobotics NI LabVIEW 5 14-02-2009 10:05
Globe Motor Programming Questions Eric W. Jones Programming 16 08-08-2006 15:03
Relay Programming Questions... comwiz7 Programming 11 21-02-2006 13:04
Programming Questions magical hands Programming 14 26-01-2006 17:26
2 questions (programming) Brawler006 Programming 20 22-02-2004 23:15


All times are GMT -5. The time now is 22:37.

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