Quote:
Originally Posted by starsROBOTICS
Ok whenever you program in labview does how do you choose what I/0 is being used?
Also i looked everywhere in these programming posts, and i can't find one that answers my question.
Is these a default control for the joysticks?
|
I recommend posting this question on the
NI FIRST forums. These forums are moderated and supported by NI Engineers that have (a lot) of experience programming in LabVIEW
AND programming with the VIs for FRC. If you want more explanation and sample code like I have provided I
strongly recommend posting your questions there.
Quote:
|
Originally Posted by Bob Steele
I will look into my crystal ball here and I would predict that we will get a Labview for FRC included in our KOP this year... I would imagine it will have the Labview default code and a bunch of other easily applicable modules for remote control, motor control... etc...
|
You are absolutely right! LabVIEW FRC edition will be shipping with the KOP, and it will contain default code to interface with sensors, motors, robot drive, etc.
Quote:
|
Originally Posted by Don Rotolo
In LabView you can use a kind-of 'wizard' block to manage the input device (to which the joystick is connected) and that will put put a varying signal (varying according to the joystick position). You can then scale this to a range of 0-255 or whatever you prefer.
|
You won't need to use the DAQ Assistant ("wizard block") to interface with your joysticks. You simply drop down a joystick VI and select which port your joystick is plugged into (the numbers correspond to which USB ports on the driver station).
Attached is a sneak-peak screen shot of a portion of the joystick API that should answer the original question.