![]() |
Joystick control of a window motor - Will not run
1 Attachment(s)
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! |
Re: Joystick control of a window motor - Will not run
Hello again.
Is this in teleop or is this an independent vi? |
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! :D |
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.
|
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!
|
Re: Joystick control of a window motor - Will not run
Quote:
|
| All times are GMT -5. The time now is 11:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi