01-20-2010 07:06 PM
How do I define a RefNum Registry Set Vi and Get Vi for a second Joystick and a motor other than what is in the default code.
Thanks
Bob
01-20-2010 11:19 PM
I think you'll find the videos at frcmastery.com very helpful in learning LabVIEW and how to manipulate the FRC framework.
01-21-2010 12:29 PM
Hi Bob,
To define a RefNum for another Joystick, just add another instance of the Joystick.lvlib:Open.vi and Joystick.lvlib:RefNum Registry Set.vi in the Begin VI. Change the JoystickDevice input to something other than USB 1 and change the refnum name to something other than Joystick 1 (like Joystick 2). This creates another reference that is specific to the your second joystick.
In your Teleop VI add another Joystick.lvlib:RefNum Registry Set.vi and wire in the same refnum name (Joystick 2) that you had used in the Begin VI.