Go to Post It will really be different for us (ESPECIALLY since our robot drives consistently this year). - Karibou [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 05-03-2012, 13:02
DFZXA DFZXA is offline
Registered User
FRC #3055 (Furious George)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Minnesota
Posts: 60
DFZXA is infamous around these parts
Ignoring voltage drops

I'd like to make a program that ignores extreme drops in voltage, but the way I'm thinking of it I would need to get the voltage at one time and get it at a different time in order to compare it. Is there a vi to do this or is there a simpler way.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-03-2012, 13:16
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: Ignoring voltage drops

There is a vi to grab the robot voltage on the WPI -> Driver Station pallete.
Attached Thumbnails
Click image for larger version

Name:	RobotBatteryVoltage.jpg
Views:	34
Size:	30.4 KB
ID:	12204  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-03-2012 at 13:19.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-03-2012, 13:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Ignoring voltage drops

Quote:
Originally Posted by DFZXA View Post
I'd like to make a program that ignores extreme drops in voltage, but the way I'm thinking of it I would need to get the voltage at one time and get it at a different time in order to compare it. Is there a vi to do this or is there a simpler way.
The simplest way to ignore voltage drops is to, well, ignore them.

But of course that's not what you meant.

I think you meant you want to compensate for changes in voltage.

For example, you want to maintain the same torque on a motor even if the available battery voltage fluctuates (due to other loads). If you are using Jaguars on a CAN network, you can do that using the Jag's built-in PID controller to control current to the motor. Motor current and motor output torque are very closely related so that would accomplish the task.

Or perhaps you want to maintain a steady speed, like the speed of a shooter wheel, even when the battery voltage fluctuates. This can be done by using a speed PID controller to control the motor's speed. If the battery voltage drops, the PID automatically increases the output PWM% as necessary to maintain the desired speed.

LabVIEW contains a PID vi. Check out the help.


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 08:44.

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