Go to Post It's all about inspiration until people start complaining about teams getting lucky schedules and seeding first. - Anupam Goli [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 22-02-2010, 07:35
xnaut's Avatar
xnaut xnaut is offline
Team 79 KRUNCH
AKA: Patrick Thompson
FRC #0079 (TEAM KRUNCH)
Team Role: Programmer
 
Join Date: Nov 2008
Rookie Year: 2007
Location: East Lake High School
Posts: 46
xnaut is a jewel in the roughxnaut is a jewel in the roughxnaut is a jewel in the rough
Send a message via AIM to xnaut
Exclamation LabView open PWM HELP

We are having problems with making our three motors all run up and down. As of right now we have three motors attached to our manipulator. All three motors will allow us to go down, but only one goes up. They are all supposed to be able to do both. Each motor has its own PWM and victor.

In an attempt to see if it was a mechanical problem we plugged each motor into each Victor and PWM and it still only worked on PWM 2, 1 and 3 still won't go up.

In the code, we swapped PWM1 and 2 and retested, now only PWM 1 worked. We took the one that was working and deleted the other two, copied the working one and changed the PWMs and the names to see if we just used an older version of the open motor vi. It still didn't work.

We swapped out all of the wires and digital side car and retested again and recieved the same results.

After that as a final attempt we plugged the two unworking PWMs into our drive PWMs and used the joystick rather than buttons to make the manipulator go up and down. It worked. But we would rather have the buttons and orginal PWMs working.

We know that it's not a problem with the buttons, our code, or electrical. The button works for the one working PWM and everything was swapped electrically and we still got the same results.

Any suggestions? Anyone having this same issue?
__________________
Shirley you cant be serious...
Of course i am... and don't call me Shirley
_____________________________________________
TEAM KRUNCH 79
CLEARWATER FL
_____________________________________________
  #2   Spotlight this post!  
Unread 22-02-2010, 10:25
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,722
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: LabView open PWM HELP

I still vote for a mixture of programming and electrical

I'd look at a single Victor at a time.
How are the Victor status lights behaving (green/red/off/orange or blinking)?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 22-02-2010, 12:08
NullEntity's Avatar
NullEntity NullEntity is offline
Registered User
AKA: Bryce
FRC #0093 (N.E.W. Apple Corps Robotics)
Team Role: Scout
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Appleton
Posts: 108
NullEntity is an unknown quantity at this point
Re: LabView open PWM HELP

Quote:
Originally Posted by Mark McLeod View Post
I still vote for a mixture of programming and electrical
I agree with that. I'm thinking it'd be electrical.
__________________
FRC Team 93 Alumni
  #4   Spotlight this post!  
Unread 22-02-2010, 13:26
xnaut's Avatar
xnaut xnaut is offline
Team 79 KRUNCH
AKA: Patrick Thompson
FRC #0079 (TEAM KRUNCH)
Team Role: Programmer
 
Join Date: Nov 2008
Rookie Year: 2007
Location: East Lake High School
Posts: 46
xnaut is a jewel in the roughxnaut is a jewel in the roughxnaut is a jewel in the rough
Send a message via AIM to xnaut
Re: LabView open PWM HELP

They are behaving normally. It's not the victors we ruled that out completely.
__________________
Shirley you cant be serious...
Of course i am... and don't call me Shirley
_____________________________________________
TEAM KRUNCH 79
CLEARWATER FL
_____________________________________________
  #5   Spotlight this post!  
Unread 23-02-2010, 07:42
xnaut's Avatar
xnaut xnaut is offline
Team 79 KRUNCH
AKA: Patrick Thompson
FRC #0079 (TEAM KRUNCH)
Team Role: Programmer
 
Join Date: Nov 2008
Rookie Year: 2007
Location: East Lake High School
Posts: 46
xnaut is a jewel in the roughxnaut is a jewel in the roughxnaut is a jewel in the rough
Send a message via AIM to xnaut
Re: LabView open PWM HELP

We fixed the issue, what had happened was we put a disable structure on our previous code, and was using simpler basic code for testing in the area where we assign speed values. Turns out under that disable we had a control that disabled our ablility to drive, and disabling a disable made it have a mind freakout... yay labview for winning darwin award.
__________________
Shirley you cant be serious...
Of course i am... and don't call me Shirley
_____________________________________________
TEAM KRUNCH 79
CLEARWATER FL
_____________________________________________
  #6   Spotlight this post!  
Unread 23-02-2010, 07:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabView open PWM HELP

Since I don't know what a mind freakout for a programming language is, can you describe the issue again?

Greg McKaskle
  #7   Spotlight this post!  
Unread 23-02-2010, 11:08
jerry w's Avatar
jerry w jerry w is offline
Free Agent Mentor
no team (Team Krunch)
Team Role: Engineer
 
Join Date: Nov 2003
Rookie Year: 2002
Location: dunedin fl
Posts: 113
jerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud of
Re: LabView open PWM HELP

Diagram disable
Programmers can temporarily remove code from a LabView VI. Placing the diagram-disable structure around the code will cause it to be "Commented-out".
Flipping the structure to its "enable" side will also allow the programmer to add new code as a temporary replacement for that removed. However, the real-time system has a problem with this structure. I discovered on a PXI chassis two years ago that the disable-structure does not work if it contains a front-panel item.
For example a boolean control on the front panel shows as a variable on the diagram. We accidentally included this variable in the disable-structure.
We then added new code that did not use this control. When running the code, the observed results of this VI were very strange. Data was not following the coded instructions of either the "enabled" or the "disabled" code. In addition, when we changed the enabled version slightly, the output changed in unexpected ways.
The workaround here is to use caution. Never include a front panel control inside the diagram-disable structure.

jerry
__________________
Happiest when people tell the truth... However, I am blessed with many friends.
  #8   Spotlight this post!  
Unread 23-02-2010, 22:52
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabView open PWM HELP

Very interesting. I'll try to reproduce it and file a bug report against the compiler. I've never seen this, but then again, I don't use the disable structure that often.

Greg McKaskle
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
HELP!!!! we need help w/ compressors/pneumatics for teleop/autonomous in LABVIEW rokenboker NI LabVIEW 9 05-02-2010 17:10
Labview servo motor PWM correlation to set VI mbone206 NI LabVIEW 4 30-01-2009 14:58
Need help with PWM 1-2ms pulse control Generalx5 Programming 27 06-05-2008 00:08
we need help with PWM problem in autonomous steve d Programming 7 03-02-2008 12:46
File Open Problems in LabVIEW pyroslev LabView and Data Acquisition 3 20-01-2007 15:52


All times are GMT -5. The time now is 10:39.

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