|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Button help
Okay then do we use the joystick refnum in teleop to get them initialized instead of the joystick open since that was already done in the begin.vi?
|
|
#2
|
|||
|
|||
|
Re: Button help
Yes. Open once, and store with a name in Begin. Get with the name everywhere you need the value.
Greg McKaskle |
|
#3
|
||||
|
||||
|
Re: Button help
Okay in the begin.vi do we then wire the joystick and motor up to the build array function?
|
|
#4
|
|||
|
|||
|
Re: Button help
The errors are collected in a array. This makes it easy to see if anything is failing during initialization. You can do this if you like, but it isn't required. The errors will be reported to the Diagnostics page instead if they aren't wired.
Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: Button help
Okay we have the basic idea set up for pressing the button done and everything checks out, but when we deploy it to the robot nothing goes. Do we have to designate something else or what's not going on?
Here's an attachment of the teleop with buttons anything out of place that stopping the motor from running? |
|
#6
|
|||||
|
|||||
|
Re: Button help
The Motor Open needs to be moved to Begin.vi and done the same way that all the other devices are opened.
What's happening is you are opening the motor 50 times a second and never closing any of them. LabVIEW is very confused about which of the several thousand motors you have opened you're talking about... Last edited by Mark McLeod : 13-02-2010 at 17:13. |
|
#7
|
||||
|
||||
|
Re: Button help
Thanks for helping everyone, the motor's running great now!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Button programming help | interplanetary | Java | 3 | 17-02-2010 13:01 |
| Help Reading Joystick button Values | PlaidPillagers | NI LabVIEW | 1 | 11-02-2010 11:27 |
| Button Help | brainsdmaner | NI LabVIEW | 3 | 11-02-2009 18:06 |
| Joystick Button Motor!!! HELP!!! | furiousgeorge | Programming | 3 | 07-02-2009 22:57 |
| Joystick Button Programming in Labview Help Needed | domoarigato | NI LabVIEW | 11 | 28-01-2009 10:55 |