Go to Post Anyway, everyone, PLEASE READ THE MANUAL VERY CAREFULLY and ask around for the answers before going directly to FIRST. :) - AmyPrib [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 04-03-2013, 17:31
iilego's Avatar
iilego iilego is offline
Registered User
FRC #3340
 
Join Date: Mar 2013
Location: Union City, NJ
Posts: 6
iilego is an unknown quantity at this point
How to program the digital side car

With the default program, we are able to use PWM 1-4, but for some reason 5-10 don't work. We know the motors work, so we think it's the program and so I'd like to know how it is you program a DSC or incorporate it into the program?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-03-2013, 22:47
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,112
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: How to program the digital side car

The Digital Sidecar produces PWM signals for motor speed controllers and servos. It also produces signals to control Spike relay modules. It also has general-purpose digital inputs and outputs for things like limit switches, optical sensors, quadrature encoders, I2C and SPI communication, etc. "How to program" it is much too general a question to get a simple answer in a forum post. Ask a more specific question instead, like "How do I keep an arm motor from running too far and breaking something?" or "How do I maintain a motor at a constant speed?"

The default program only has PWMs 1-4 defined, as the four drive motors. What are you trying to control on the other PWMs, and how do you have them connected? How have you modified the program to use them?
Reply With Quote
  #3   Spotlight this post!  
Unread 04-03-2013, 23:20
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: How to program the digital side car

The general style for adding a motor controlled by a PWM output involves Opening it in Begin.vi and using it in Teleop.vi and sometimes other places.
Did you do these things?

Here's a simple example:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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:29.

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