Go to Post I think this post is a lot of words saying "My name is Billfred and I approve MiniBots 2017" - Andrew Schreiber [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

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 22-01-2009, 12:43
domoarigato's Avatar
domoarigato domoarigato is offline
Team #1208 CCO
AKA: Coony
FRC #1208 (Metool Brigade)
Team Role: Engineer
 
Join Date: Nov 2008
Rookie Year: 2008
Location: O'Fallon, Il
Posts: 32
domoarigato is an unknown quantity at this point
Re: Joystick Button Programming in Labview Help Needed

@DavidAllen: Hrmmrrr... have tried a few different case statement configurations but perhaps I was not doing them correctly... Will try this when Electrical gives me the board back. > . >

@mgurgol: Probing the buttons? Have definitely pressed like... every button with every combination of code I've ever put into it... and zilch. (And yeah, the joysticks will control the jaguars and we can drive with them, but one set of two jaguars keep going in reverse when we push the joystick -usb slot 2- and we don't know why... Especially since we are only trying to control PWM signals 1 and 2 for the motors... and have deleted all the pre-done driving code in hopes that we could just call the individual PWMs etc on our own just for those two jaguars... and it still wants to control all four for some reason... though that's a separate issue... /rant)

@brdn666: Pretty sure they were wired correctly, though many of our all day 'why can't we figure this out??' problems that have been blamed on programming were actually just a backwards PWM cable... But I'm pretty sure there's no real way to mess up the wiring on these. Just going from the spike directly into the correct numbered relay-slot-thing that I specified in the code, right? When we plugged a spike into any of the DIO-slot-things, it would go in full reverse... which is better than nothing, but we're still looking for a way to make them go forward, neutral, and stop, as well as a way to toggle between these modes (ie. buttons... haha)

@TotalChaos: Hrmrrr... Yeah I was a bit confused on what the difference was between On/Off and Forward/Reverse. We want the CIM motor attached to the spike to be toggle-able from Reverse/Neutral/Forward... So I suppose that'd be Reverse/On/Forward or 3/1/2...? So if we wanted to do this... We'd like... make a case structure thing with three cases (one for each of the states) and then... I guess... Well I suppose the trouble is that I don't know how I would wire a single button to it in order to be able to trigger all three of these states. Mechanical wants it to be neutral until say... button two is pressed (pressed once, not held down... another issue I'm not sure how to do...) and then it would go forward. They also want it to be able to then (with the same button, presumabley) be able to turn the motor in reverse somehow.... yeahh... not sure if that's possible. But if it isn't, I suppose I'd have to do sorta like... two different buttons, one of which will toggle the spike from neutral to forward and one from neutral to reverse...?

Thank you all again for the quick responses and all your help~~~
Reply With Quote
 


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
Programming a joystick button... programmr Programming 2 05-01-2009 16:13
programming help needed krunal Programming 3 29-01-2007 00:18
HELP-URGENT PROGRAMMING HELP NEEDED Rohith Surampudi Lego Mindstorm Discussion 1 24-03-2006 23:05
Joystick Button programming Bharat Nain Programming 5 18-02-2005 11:48
URgent Programming Help needed rcubes85 Programming 4 15-02-2005 23:21


All times are GMT -5. The time now is 12:00.

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