Go to Post For some strange reason, people always seem to spell my last name incorrectly. I'm not really sure why. - Karthik [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-03-2014, 15:28
Rochester2909 Rochester2909 is offline
Registered User
FRC #2909
 
Join Date: Mar 2014
Location: Rochester
Posts: 11
Rochester2909 can only hope to improve
Help Us


If you could look at these pictures and tell us whats wrong
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2014, 15:31
Rochester2909 Rochester2909 is offline
Registered User
FRC #2909
 
Join Date: Mar 2014
Location: Rochester
Posts: 11
Rochester2909 can only hope to improve
Re: Help Us





Reply With Quote
  #3   Spotlight this post!  
Unread 11-03-2014, 15:33
randantor randantor is offline
Registered User
AKA: James Y
FRC #0624 (CRyptonite)
Team Role: Alumni
 
Join Date: Jun 2013
Rookie Year: 2012
Location: Katy, TX
Posts: 48
randantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of light
Re: Help Us

Edit: just saw the pictures posted in the thread

As far as I can tell, your solenoid code looks all right. Could you be more specific on exactly what you're having trouble with?

One thing to note is that the Motor Set Output VI expects a floating-point value from -1.0 to 1.0 , where -1 is full reverse, 0 is stop, and 1 is full power forwards. You seem to be giving it an integer from 0-255, which probably won't work the way you are expecting it to. Any value higher than 1 will be interpreted as full power forwards.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-03-2014, 15:39
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,752
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: Help Us

You open joystick 1 and joystick 2, but only use joystick 1. You don't show Periodic Tasks, so I can't tell if the Compressor code is in place and using the correct string.

You are also using last year's template. This will be fine, but it is more difficult to delete the camera stuff if you aren't using it.

Did you have specific issues you wanted help to understand?

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 11-03-2014, 15:59
Rochester2909 Rochester2909 is offline
Registered User
FRC #2909
 
Join Date: Mar 2014
Location: Rochester
Posts: 11
Rochester2909 can only hope to improve
Re: Help Us

Quote:
Originally Posted by randantor View Post
Edit: just saw the pictures posted in the thread

As far as I can tell, your solenoid code looks all right. Could you be more specific on exactly what you're having trouble with?

One thing to note is that the Motor Set Output VI expenging-point value from -1.0 to 1.0 , where -1 is full reverse, 0 is stop, and 1 is full power forwards. You seem to be giving it an integer from 0-255, which probably won't work the way you are expecting it to. Any value higher than 1 will be interpreted as full power forwards.
Thanks for the numerical range! That was something I have been searching for, but have yet to find.
Our problem is that when we attempt to test the code, we receive no response from the robot, yet the diver station reports no errors. Currently, we are searching for a wiring malfunction.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-03-2014, 16:14
Rochester2909 Rochester2909 is offline
Registered User
FRC #2909
 
Join Date: Mar 2014
Location: Rochester
Posts: 11
Rochester2909 can only hope to improve
Re: Help Us

Quote:
Originally Posted by Greg McKaskle View Post
You open joystick 1 and joystick 2, but only use joystick 1. You don't show Periodic Tasks, so I can't tell if the Compressor code is in place and using the correct string.

You are also using last year's template. This will be fine, but it is more difficult to delete the camera stuff if you aren't using it.

Did you have specific issues you wanted help to understand?

Greg McKaskle
Here is periodic tasks. We have not programmed anything onto the second joystick because we had an issue where the values of other joysticks were misread.

Reply With Quote
  #7   Spotlight this post!  
Unread 14-03-2014, 09:51
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Help Us

I'm pretty sure for a double solenoid, you need to actually tell it forward or backward, not just true or false. You can do this by using the selector and a couple constants.

you can also use the selector for your motor values which can be numbers from -1 to 1, not 0 to 255
__________________
Per Audacia Ad Astra
Reply With Quote
  #8   Spotlight this post!  
Unread 14-03-2014, 23:55
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Help Us

Yeah I'm pretty sure you need to define direction of a single solenoid. It's a constant on the 'Set' block.
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 20:19.

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