Go to Post since when is not sleeping, caring more about the robot and such bad for you? If it is how come I didn't get the memo? :ahh: - Sakura141 [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 Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-01-2015, 13:10
Nunez4296's Avatar
Nunez4296 Nunez4296 is offline
Programmer
AKA: Joseph Nuņez
FRC #4296 (Trident Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Gurnee IL
Posts: 39
Nunez4296 is an unknown quantity at this point
Re: Double Solenoid Problem

Sorry if I'm of little help but we just switched to Labview this year.

The VI for the code is an edited Tank Drive example written for a 6 CIM tank with ball shifters and a compressor.

I'm not sure what a "refnum" is, could you elaborate please?

We are controlling the "shift" via the front panel as of now while the robot is enabled. This will obviously change as the season progresses.

The solenoid open is outside of the loop and is set for a double solenoid.

The other issue that we are running into is that after a few minutes of driving and shifting, the robot will cycle power and we will loose connection. We have checked for loose connections, and there are none. My only two theories are that if the CKD is constantly engaged, the power cycles or, if the gearboxes half shift, the motors draw too much voltage cause the robot to reboot. If you have any thoughts, please let me know. Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2015, 20:43
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: Double Solenoid Problem

Quote:
Originally Posted by Nunez4296 View Post
The VI for the code is an edited Tank Drive example written for a 6 CIM tank with ball shifters and a compressor.
Examples are meant to show you how to do things and try them out. They are not intended to be edited significantly, and they certainly should not be turned into a program for your competition robot. One of the LabVIEW tutorials should tell you how to take what's in an example and put it in a true robot project.

Quote:
I'm not sure what a "refnum" is, could you elaborate please?
The principal output of an Open vi is a RefNum that defines the resource that was opened. Every other vi that uses that resource -- a Motor Set, a Joystick Get, etc. -- takes the RefNum as an input.

In the typical robotRIO project, all of the Opens are done in Begin.vi, and all of the RefNum values are saved using the RefNum Registry using RefNum Set functions. In Teleop.vi, and in every other place needing to use them, the RefNum values are retrieved from the Registry using RefNum Get functions.

Quote:
The solenoid open is outside of the loop and is set for a double solenoid.
That's not enough detail for me to be able to ask better questions. I need to know what all of its inputs are.

Quote:
The other issue that we are running into is that after a few minutes of driving and shifting, the robot will cycle power and we will loose connection.
What makes you think it is cycling power? Does the Robot Signal Light turn off? Do you get any indication on the Driver Station of the battery voltage dropping? Do the DS logs show the reason for the lost connection? Are you using the USB connection, a wired ethernet cable, or wireless? I apologize for the flood of questions, but I think you're going to have to give a lot more information before you can get good help.
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:49.

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