|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Joystick control of a window motor - Will not run
Hey I am having some problems getting a motor control to work in labview. I currently have a window motor hooked up to a jaguar in port 3 on the Digital Sidecar. I am trying to control it using my second joystick's 1 and 2 buttons. I have already tried searching for a solution in multiple threads but I only was able to confirm that my code should be working. Can someone take a look at it and let me know if I am doing something wrong?
Thanks! |
|
#2
|
||||
|
||||
|
Re: Joystick control of a window motor - Will not run
Hello again.
Is this in teleop or is this an independent vi? |
|
#3
|
||||
|
||||
|
Re: Joystick control of a window motor - Will not run
Oh wow, can't believe I missed that! =O I put it in Begin.VI
Thanks so much for pointing out the obvious! Now I can teach the programmers tomorrow what they were doing wrong! ![]() |
|
#4
|
||||
|
||||
|
Re: Joystick control of a window motor - Will not run
Just to clarify slightly, the Open for each device and a Reference Set for each device should be in Begin.vi. In Teleop.vi, you will want a Reference Get for each device (to link it back to the device you opened) and the rest of your code.
|
|
#5
|
||||
|
||||
|
Re: Joystick control of a window motor - Will not run
Yeah I got it, still a little new to labview but I am figuring it out. Begin.VI is where it initializes all of the 'global variables' of sorts and you can reference them from the other VIs. At least that is how I am beginning to understand it, if I am wrong please correct me!
|
|
#6
|
||||
|
||||
|
Re: Joystick control of a window motor - Will not run
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|