View Full Version : Joystick control of a window motor - Will not run
ehochstein
07-02-2012, 19:52
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!
kuh-nig-its-EL
07-02-2012, 20:02
Hello again.
Is this in teleop or is this an independent vi?
ehochstein
07-02-2012, 20:07
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
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.
ehochstein
07-02-2012, 22:25
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!
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!
I like to think of it as telling the software where the hardware is, naming things for later use, and initializing settings that aren't going to change later.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.