Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Using the same Jaguar/Controller for Joystick and buttons.... (http://www.chiefdelphi.com/forums/showthread.php?t=82262)

mck567 09-02-2010 16:18

Using the same Jaguar/Controller for Joystick and buttons....
 
We've been trying to get one jaguar to operate a motor with both the joystick and the buttons, however when we programmed it to do so only the buttons would work, not the joystick..

We tried adding another jaguar (one for button control and one for joystick control) but then the motor didn't work at all.

Any ideas as to how we can get the joystick and buttons operate a motor?

Hope that made sense...

Alan Anderson 09-02-2010 16:31

Re: Using the same Jaguar/Controller for Joystick and buttons....
 
It is likely that your button code is happening after the joystick code, and thus overriding anything the joystick wants.

Do not connect multiple speed controllers to one motor. Just don't.

Show us the code you are using and we should be able to help you make it do what you want it to.

EricVanWyk 09-02-2010 16:34

Re: Using the same Jaguar/Controller for Joystick and buttons....
 
DO NOT WIRE TWO JAGUARS TO ONE MOTOR

Disconnect it immediately, you will likely break something.



Sounds like you are having trouble knowing when you want the button to be in charge, and when you want the joystick to be in charge. Can you please tell us in English (bullet points are fine) when you want what to happen? We'll help you translate it to LabVIEW later.

For example:
I want the motor to move with the joystick, unless a button is pressed. If the button 1 is pressed, I want the motor to go 50% forward. If button 2 is pressed, I want the motor to go 60% backwards.


All times are GMT -5. The time now is 11:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi