Go to Post How many computer programmers does it take to screw in a lightbulb? Woah, no. That's a hardware problem. - jordie228 [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 11-02-2012, 15:48
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
Exclamation 1 Motor in LabVIEW?

Can someone please provide a screenshot of how to wire up a single motor in the Begin.vi, Teleop.vi, and Finish.vi?

Also if possible can you show how to use a button on the joystick to make a motor constantly on/off by pushing the button?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2012, 14:44
legogeek24's Avatar
legogeek24 legogeek24 is offline
Registered User
AKA: Dirk
FRC #3562 (LiveWire)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Pocatello, ID
Posts: 94
legogeek24 has a spectacular aura aboutlegogeek24 has a spectacular aura aboutlegogeek24 has a spectacular aura about
Re: 1 Motor in LabVIEW?



Hopefully that helps
__________________
4 year FIRST alumnus and current MIT Computer Science student
Mentor for LiveWire 3562 and The Arabian Knights 4928
"1...2...3562!!!"
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2012, 15:13
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: 1 Motor in LabVIEW?

Some other LabVIEW screen shot examples are here:
http://team358.org/files/programming...2009-/LabVIEW/

The examples start a little bit down, so scroll down to see them.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2012, 15:47
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: 1 Motor in LabVIEW?

Quick question, what is a digital module and where can it be found?
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2012, 17:11
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
Exclamation Re: 1 Motor in LabVIEW?

http://imgur.com/O5TEE

http://imgur.com/iMFoa

http://imgur.com/g09rW

Begin, Teleop, and Finish vi's - but one jaguar is blinking yellow even when enabled. The 4 Jaguars that are hooked up to our wheels are constant yellow until I move in forward or reverse. It's not the jaguars or wiring, so it has to be something in the programming. Please help and let me know what's going wrong ASAP.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2012, 18:59
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: 1 Motor in LabVIEW?

The motor Refnum Get isn't a Refnum Get in teleop.
It's a Set instead, so that needs to be changed to a Get.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2012, 15:12
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
Exclamation Re: 1 Motor in LabVIEW?

Quote:
Originally Posted by Mark McLeod View Post
The motor Refnum Get isn't a Refnum Get in teleop.
It's a Set instead, so that needs to be changed to a Get.
I fixed this in our programming, however the jaguar that has code for button-action is ddisplaying a constant blinking yellow still when the robot enables.

I do not believe that the jaguar should be blinking yellow when the robot is enabled. No code was changed except for the Set to a Get in Teleop. Please anyone if you can help, do so ASAP

Could it be we're missing something with the cRIO cards? We have NI 9403 in slot 2 on our 8-slot cRIO (So it IS the Digital Module 1)

Last edited by Team3763 Adam : 14-02-2012 at 15:16.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2012, 15:49
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: 1 Motor in LabVIEW?

Check your PWM cable polarity.
Try switching the PWM cable from one of the working Jaguars to the blinking one to see if it gets signal and goes solid.

As long as the code performs an Open for the Jag, then the Jag light should be solid when the robot is Enabled.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 14-02-2012, 16:06
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
Exclamation Re: 1 Motor in LabVIEW?

Quote:
Originally Posted by Mark McLeod View Post
Check your PWM cable polarity.
Try switching the PWM cable from one of the working Jaguars to the blinking one to see if it gets signal and goes solid.

As long as the code performs an Open for the Jag, then the Jag light should be solid when the robot is Enabled.
We have reversed the PWM cables, I've changed the code from Jag to Victor, nothing has worked. We're using the provided Sidecar from 2012 year, and for some reason, PWM 5 isn't working. Do I have to add in Digital Module 2 on the cRIO slots to work PWM's 5-8?
Reply With Quote
  #10   Spotlight this post!  
Unread 14-02-2012, 16: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,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: 1 Motor in LabVIEW?

Quote:
Originally Posted by Team3763 Adam View Post
...for some reason, PWM 5 isn't working.
Your Begin looks like it's opening the motor correctly, so the speed controller's LED should stop blinking when the robot is enabled. If it doesn't, there's mostly likely a wiring problem (or a broken component). But make sure you aren't still getting any errors on the Diagnostics tab of the Driver Station.

Try swapping the PWM cables between one of the Jaguars that works and the one that doesn't. If the problem follows the cable, focus on the Digital Sidecar connection. If the problem stays with the Jaguar, mark it as suspect and replace it.
Reply With Quote
  #11   Spotlight this post!  
Unread 16-02-2012, 15:44
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: 1 Motor in LabVIEW?

I've tried ALL of the above, except the "Replacing the Jaguar."

If you can decypher this: I took the PWM Cable off of one of our Drive Jaguars (we'll call it Jaguar 1) and swapped it with the PWM Cable off of the Single Motor (Jaguar and PWM 5, respectively), thus making the 5th Jaguar act as PWM 1, and the 1st Jaguar act as PWM 5. This caused Jag5 to turn solid yellow when enabled and Jag1 to blink constant yellow. So it has to be somewhere in the cRIO, Programming, Code, or Wiring. I have followed the above diagrams to the very last detail, only differing on the name.

Hopefully, someone can figure out our problem.
Reply With Quote
  #12   Spotlight this post!  
Unread 16-02-2012, 16:53
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: 1 Motor in LabVIEW?

Quote:
Originally Posted by Team3763 Adam View Post
So it has to be somewhere in the cRIO, Programming, Code, or Wiring. I have followed the above diagrams to the very last detail, only differing on the name.

Hopefully, someone can figure out our problem.
What is the Robot Singal Light doing? Do you have a good 12 volt power connection to your Digital Sidecar? Are all three of the power LEDs on the DS brightly lit? If the first four PWM outputs work but no more, that's a common symptom of a DS that's starved for power.
Reply With Quote
  #13   Spotlight this post!  
Unread 16-02-2012, 21:46
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: 1 Motor in LabVIEW?

This is another issue our team experienced. First, we tried swapping out cables which connected the cRIO to the Digital Sidecar. When this failed, we opened the sidecar and saw an alarming burn mark next to the PWM channels which weren't working. Metal filings made their way into the sidecar. I'd check your sidecar for this issue.
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:40.

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