Go to Post I still have 3 good ligaments left and 2 events, so I should be fine :rolleyes: - esquared [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 14-02-2015, 19:23
paul.dornfeld paul.dornfeld is offline
Registered User
FRC #5523
 
Join Date: Jan 2015
Location: Grass Lake, MI
Posts: 54
paul.dornfeld is an unknown quantity at this point
5523 (rookie team) requests LabView program help

5523 has an awesome robot bulldozer with the standard Andymark chassis (built long) and two CIM motor drive per each toughbox gear set (one twin motor for each side) to be operated by the joystick.
The bridge is configured. The RoboRio is configured. When we power up all four KOP (rookie 2015 version) talons blink on the motor side.
When I load the sample Labview program, the Driver Station goes green on all: bridge, robot, code, and joysticks AND the joystick makes ONE talon control ONE motor on the right side; so I know there is some level of connectivity that appears good.

My rookie programmer believes he has a correctly written code, but neither of us have been able to “import”, "upload", or “merge” his code into the RoboRio to even test his code.

So, what would be awesome is for there to be a “simple” program written that could be uploaded into our driver laptop and RoboRio. “All” it would need, is to have four talons control four motors through one joystick (alternately, and perhaps better: two talons -one for each side -right and left, with each of the two talons being rewired with a “y”-wire connector, in other words one talon connected to and controlling both of the motors on one side for synchronicity in the gear box). The “simple” program would “only” need to make the robot move; Forward, reverse, turn right, turn left.

I was hoping to “Learn” Labview this weekend, but after spending as much time as possible the last two days with the tutorial… I realize this is a bigger task than even a long weekend crunch session.


Additionally, we have one more motor to be controlled with a Talon SR that could control an awesome vertically articulating gate. It would load and unload the totes from the human-fed chute. It has two contact/pressure switches as input (one for high position (Home position) and one at the low position). We had planned on backing up the robot to the human station with the gate in the high position, Receive the tote. drive to the scoring platform. Then with the thumb-switch on the joystick, activate the motor to lower the gate releasing the tote to slide onto the scoring platform (this is not a complete revolution of the motor, more like 180 degree rotation), then lift the gate 'till it hits the home (high) switch and leaving it in that position to receive another tote.
This, of course is secondary, to just moving the robot at all, but it is the cool part of our design.

Of course, for the autonomous part, just blindly driving the robot straight ahead for so-many-seconds is our current out-of-time plan.



Then, some guidance as to how to get this program into the laptop and roborio to see if it all will work.

Sorry to make this request during such a crunch time. I was hoping to be able to pull it off, but the labview has me really stumped.

Thank you for any advice, resources, etc. that you can offer.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2015, 19:41
AGPapa's Avatar
AGPapa AGPapa is offline
Registered User
AKA: Antonio Papa
FRC #5895
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Robbinsville, NJ
Posts: 323
AGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond reputeAGPapa has a reputation beyond repute
Re: 5523 (rookie team) requests LabView program help

Quote:
Originally Posted by paul.dornfeld View Post
So, what would be awesome is for there to be a “simple” program written that could be uploaded into our driver laptop and RoboRio. “All” it would need, is to have four talons control four motors through one joystick (alternately, and perhaps better: two talons -one for each side -right and left, with each of the two talons being rewired with a “y”-wire connector, in other words one talon connected to and controlling both of the motors on one side for synchronicity in the gear box). The “simple” program would “only” need to make the robot move; Forward, reverse, turn right, turn left.
That program comes default with LabVIEW (it uses the y-cable setup). I've attached images showing you how to find it.

You need to right click on "FRC Robot Boot-up Depolyment" and click "Build" to compile your code. When that is completed you should connect to your robot. Then right click on "FRC Robot Boot-up Depolyment" again and select "Run as Startup" to put your code on the robot.
Attached Thumbnails
Click image for larger version

Name:	step1.JPG
Views:	25
Size:	90.8 KB
ID:	18354  Click image for larger version

Name:	step2.JPG
Views:	34
Size:	104.5 KB
ID:	18355  Click image for larger version

Name:	step3.JPG
Views:	35
Size:	70.3 KB
ID:	18356  
__________________
Team 2590 Student [2011-2014]
Team 5684 Mentor [2015]
Team 5895 Mentor [2016-]
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2015, 19:55
paul.dornfeld paul.dornfeld is offline
Registered User
FRC #5523
 
Join Date: Jan 2015
Location: Grass Lake, MI
Posts: 54
paul.dornfeld is an unknown quantity at this point
Re: 5523 (rookie team) requests LabView program help

Thank you for the quick reply. The screen-shots are most helpful.
I had done the steps in screen-shots 1 & 2, but instead of using the FRC Boot Up Deployment, I loaded the RoboRio with the RobotMain.vi.
I will try the boot deployment tomorrow and see if that will activate the left talon as well.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2015, 23:51
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 53
mshafer1 is an unknown quantity at this point
Re: 5523 (rookie team) requests LabView program help

Quote:
Originally Posted by paul.dornfeld View Post
Thank you for the quick reply. The screen-shots are most helpful.
I had done the steps in screen-shots 1 & 2, but instead of using the FRC Boot Up Deployment, I loaded the RoboRio with the RobotMain.vi.
I will try the boot deployment tomorrow and see if that will activate the left talon as well.
When you run tomorrow, feel free to email me (click on my username and select send an email) if you have any issues or questions.

I also want to reiterate that AGPapa is correct, but also add that when on the robot's wifi, one can click on the run button on Main.VI which is useful for debugging (this will make the code run on the robot in a probable state, but this "deploy" method does not stay after reboot).
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2015, 10:41
paul.dornfeld paul.dornfeld is offline
Registered User
FRC #5523
 
Join Date: Jan 2015
Location: Grass Lake, MI
Posts: 54
paul.dornfeld is an unknown quantity at this point
Re: 5523 (rookie team) requests LabView program help

Thank you so much. I will.
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 08:27.

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