Go to Post Chances are it's an electrical or mechanical problem... - mechanicalbrain [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-04-2006, 13:16
augeas augeas is offline
Registered User
FRC #0027
 
Join Date: Apr 2006
Location: OSMTech
Posts: 2
augeas is an unknown quantity at this point
digital outs

Is it possible to send a signal to the same digital output on the controller more than once in a program cycle? I know the putData() function is only called once every slow cycle, but is it possible to have another function that only sends data to the digital outputs that is called more often in order to speed things up?
  #2   Spotlight this post!  
Unread 12-04-2006, 13:26
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: digital outs

The digital i/o's are directly connected to the PIC. Anything that happens to them happens simultaniously on the connectors. So, if you modify a digital i/o, it'll change right away on its respective connector. My understanding is that the only ones that don't happen right away are the PWM outputs, but that's because they take some extra processing.

EDIT:
Oh wait. I just noticed that this is in the CMUcam forum. Were you asking about the camera or the robot controller?
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #3   Spotlight this post!  
Unread 12-04-2006, 14:07
augeas augeas is offline
Registered User
FRC #0027
 
Join Date: Apr 2006
Location: OSMTech
Posts: 2
augeas is an unknown quantity at this point
Re: digital outs

EDIT:
Oh wait. I just noticed that this is in the CMUcam forum. Were you asking about the camera or the robot controller?[/quote]


Thanks for your help! That makes a lot of sense and really clears things up. I was asking about the robot controller... I didn't realize I put this in the CMUcam forum and not the programming forum.
  #4   Spotlight this post!  
Unread 12-04-2006, 14:20
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: digital outs

Quote:
Originally Posted by augeas
Is it possible to send a signal to the same digital output on the controller more than once in a program cycle? I know the putData() function is only called once every slow cycle, but is it possible to have another function that only sends data to the digital outputs that is called more often in order to speed things up?
Yes you can. Digital inputs and outputs are directly input and output by you.

See my post here for an example of using digital outputs between putdata statements.

Good luck.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Closed Thread


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
No value in digital ins using NASON pressure switch. Ari Allyn-Feuer Programming 1 18-02-2006 01:18
Digital Caliper as a Digital Readout on Small Mill sanddrag Technical Discussion 9 13-10-2005 22:51
Dynamic Input/Output Changing Paolo Control System 6 23-09-2004 19:09
heres the code. y this not working omega Programming 16 31-03-2004 15:18
digital inputs not valid just after initialization? WizardOfAz Programming 2 26-01-2004 13:21


All times are GMT -5. The time now is 15:02.

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