Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Joystick control of a window motor - Will not run (http://www.chiefdelphi.com/forums/showthread.php?t=102212)

ehochstein 07-02-2012 19:52

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!

kuh-nig-its-EL 07-02-2012 20:02

Re: Joystick control of a window motor - Will not run
 
Hello again.

Is this in teleop or is this an independent vi?

ehochstein 07-02-2012 20:07

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

vhcook 07-02-2012 22:08

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.

ehochstein 07-02-2012 22:25

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!

vhcook 09-02-2012 16:46

Re: Joystick control of a window motor - Will not run
 
Quote:

Originally Posted by Wiifi (Post 1122103)
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.


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