Go to Post the everyone is a winner philosophy cheapens winning. - Andrew Schreiber [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
  #16   Spotlight this post!  
Unread 31-01-2012, 16:37
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: No clue where to start on Programming...

I have run into yet another problem.

In LabVIEW, I cannot get our other 2 motors to respond to the programming. I've tried with 4-motor and 2-motor drives, and nothing works. We've checked all the hardware and wirings, with nothing working. If anyone can help, it would be great.

I made sure I had everything edited properly in Teleop, Begin, and Finish vi's.
Motors 3 and 4 were wired into PWMs 3 and 4, with neither working. However, 1 and 2 DO work, but because they were pre-programmed, I have no clue what the problem could be.

A simple schematic would be great. A screenshot, anything really.

In need of desperate help.
Reply With Quote
  #17   Spotlight this post!  
Unread 31-01-2012, 22:59
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: No clue where to start on Programming...

Quote:
Originally Posted by Team3763 Adam View Post
In LabVIEW, I cannot get our other 2 motors to respond to the programming.
For your motor speed controllers, are you using Jaguars or Victors?

What is the light on the speed controller showing, both before and after you Enable the robot using the Driver Station?
Reply With Quote
  #18   Spotlight this post!  
Unread 01-02-2012, 10:51
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,919
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: No clue where to start on Programming...

Here's what your Begin should look like and the original drive code must be gone.

Things to watch out for include:
  • Making sure you don't have two different drive trains defined
  • Making sure the drive name is correct in Teleop
  • Make sure your PWM's are all unique
If you get Begin right, then your Jaguars should stop blinking when the robot is Enabled, at least from a code perspective.
That doesn't mean your PWM cables aren't reversed or something.
Attached Thumbnails
Click image for larger version

Name:	4-motor-drive.png
Views:	30
Size:	21.9 KB
ID:	11673  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2012 at 10:54.
Reply With Quote
  #19   Spotlight this post!  
Unread 01-02-2012, 19:24
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: No clue where to start on Programming...

Quote:
Originally Posted by Mark McLeod View Post
Here's what your Begin should look like and the original drive code must be gone.

Things to watch out for include:
  • Making sure you don't have two different drive trains defined
  • Making sure the drive name is correct in Teleop
  • Make sure your PWM's are all unique
If you get Begin right, then your Jaguars should stop blinking when the robot is Enabled, at least from a code perspective.
That doesn't mean your PWM cables aren't reversed or something.
Thank you so much for telling this! I did NOT know I had to delete the original code! I'll try that tomorrow and tell you how it works.

To answer the previous question, all 4 Jaguars blinked a constant yellow.
-The 2 motors that ACTUALLY worked then displayed a solid green or red, depending on their direction of travel.
Reply With Quote
  #20   Spotlight this post!  
Unread 02-02-2012, 16:15
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: No clue where to start on Programming...

Quote:
Originally Posted by Mark McLeod View Post
Here's what your Begin should look like and the original drive code must be gone.

Things to watch out for include:
  • Making sure you don't have two different drive trains defined
  • Making sure the drive name is correct in Teleop
  • Make sure your PWM's are all unique
If you get Begin right, then your Jaguars should stop blinking when the robot is Enabled, at least from a code perspective.
That doesn't mean your PWM cables aren't reversed or something.
I did exactly as you said, I checked and made sure I deleted ALL original code, and I made sure the names were exactly the same. I followed the picture exactly in LabVIEW and the two additional motors are STILL not spinning.
Reply With Quote
  #21   Spotlight this post!  
Unread 02-02-2012, 16:39
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: No clue where to start on Programming...

http://imgur.com/pHaX7 --- Teleop.vi




http://imgur.com/hic4V --- Begin.vi



http://imgur.com/mE9fR --- Finish.vi



As you can see, I removed the original code, and then added in my OWN code.

I can successfully deploy the robot code to the cRIO.

Then, I switch over to the Classmate and I get Robot Communication and Code.

However, when we move the joystick on our controller, motors 3 and 4 DO NOT respond with the code. There is no signal being sent to either Jaguar.



Please help. If you know what the problem is, please tell. We are desperate right now. It's not our hardware or wiring. The only solution I can think of is the programming itself. So please explain what my problem is.
Reply With Quote
  #22   Spotlight this post!  
Unread 02-02-2012, 16:42
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,919
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: No clue where to start on Programming...

The quick answer is to zip the project folder (Documents/LabVIEW Data/project name) and post it here so we can see what the problem is, or at least isolate it to wiring vs programming.
P.S. Your photo hosting site is blocked here, so I'll take a look when I get home.

Potential wiring problems include:
  • Power to the Digital Sidecar (All LEDs bright & green?)
  • PWM cables (can swap the cables from the working ones to the non-working Jags.
  • Low battery voltage of course
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #23   Spotlight this post!  
Unread 02-02-2012, 16:45
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: No clue where to start on Programming...

I see nothing immediately wrong with the code. How are you deploying it to the robot?

When you say you "switch over to the Classmate", what exactly does that mean?
Reply With Quote
  #24   Spotlight this post!  
Unread 02-02-2012, 16:51
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: No clue where to start on Programming...

I have a Host Computer with LabVIEW downloaded onto it, and the Host computer is what I use for programming. I then deploy the code by pressing the right-facing arrow on-screen. Switching over to the Classmate I mean unplugging the Host computer (Ethernet chord) and plugging into the Classmate (again with an Ethernet chord).
Reply With Quote
  #25   Spotlight this post!  
Unread 02-02-2012, 16:54
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,919
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: No clue where to start on Programming...

That would be bad, since the white arrow only runs in debug mode and automatically shuts down the cRIO code when your laptop disconnects.
Rebooting the cRIO restores previous code, which obviously is a two motor version.

Either get a second Ethernet cable and go through a switch, so they can both remain plugged in, and/or download the code permanently.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-02-2012 at 16:57.
Reply With Quote
  #26   Spotlight this post!  
Unread 02-02-2012, 16:58
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: No clue where to start on Programming...

We tried reversing the PWM cables, and our battery has full volts.

However, we have NO lights on the Sidecar, and it IS the one provided this year.

That being said, 2 of our 4 motors work properly. As if they were "pre-programmed"
Reply With Quote
  #27   Spotlight this post!  
Unread 02-02-2012, 17:04
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Re: No clue where to start on Programming...

If you go to the Project Explorer -> build specifications -> FRC Robot Boot-up deployment and right click Boot-up Deployment, you should see an option "deploy." Would this work to permanently deploy the code onto the cRIO? If not, is there a way to PERMENANTLY deploy any new/changed code to the cRIO while using a Host computer?
Reply With Quote
  #28   Spotlight this post!  
Unread 02-02-2012, 17:04
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: No clue where to start on Programming...

Quote:
Originally Posted by Team3763 Adam View Post
However, we have NO lights on the Sidecar, and it IS the one provided this year.
No lights would be bad.

Do you have 12 volt power connected to the Digital Sidecar's power input from a 20 amp circuit on the Power Distribution Board? You should. There is enough leakage through the signals from the cRIO to power a couple of PWM outputs, but you're not supposed to rely on that accident.

To permanently load code to the cRIO, "Build" and then "Run as startup". There's really no use for the "Deploy" command in that popup menu.
Reply With Quote
  #29   Spotlight this post!  
Unread 02-02-2012, 17:05
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,919
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: No clue where to start on Programming...

Quote:
Originally Posted by Team3763 Adam View Post
However, we have NO lights on the Sidecar, and it IS the one provided this year.
The Digital Sidecar needs to get it's power from a 12v connection on the Power Distribution Panel wired to one of the white wago connectors that then plugs into the Digital Sidecar.

The ribbon cable does trickle enough power to maybe run a couple of the PWM outputs (unreliably).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-02-2012 at 17:08.
Reply With Quote
  #30   Spotlight this post!  
Unread 02-02-2012, 17:05
mswalker mswalker is offline
Mentor
FRC #2583 (Westwood Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 26
mswalker is on a distinguished road
Re: No clue where to start on Programming...

If you installed everything from the LabVIEW USB you should have the FRC Driver Station program on your host computer. You can start that and run it in place of the ClassMate. If you are plugging your ethernet cables into the Wireless Bridge, you can plug both your host and classmate in at the same time. (Just make sure your host has a unique IP address ie not 10.te.am.6 or 10.te.am.5)
__________________
http://team2583.org
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 13:16.

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