|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
General LabVIEW questions from a VERY new user
This is my first year programming on our Robotics Team and our previous programmer didn't teach me a thing. I do have prior experience in Basic, C++, Java, and my calculator (physics equations OP), but I saw LabVIEW for the first time about a weak ago. I'm trying to work my way through it slowly but surely and am finally making some good progress, so I'm using this thread for any general LabVIEW questions I get as I'm learning the language itself
Also: I'm using a Logitech F310 controller My first question: see this pic I understand the part on the left, however the circled part on the right is still confusing to me. I understand that the axis 1 (x) and axis 2 (y) relate to the left (i think) analog stick on my controller, and I also realize that in order to control the other (right side?) analog stick on my controller I need to make an axis 3 (x) and axis 4 (y) because the computer counts my entire controller as one big joystick. HOWEVER, I *don't* understand why the axis wire from Joystick 1 branches off to a 2nd vi -- "Cluster to Array" and what goes on in that part of the branch. Why doesn't it JUST use the axes of the joystick? What cluster is it referring to? The red circled part is un-edited from the starting code in Teleop.vi in a new cRIO Robot Project Question 2: Here is my current understanding of each file in a "cRIO Robot Project" Project file/folder that I made while taking notes. If I'm missing something important (or have a "?"), any extra insight would be really helpful Code:
Team Code file Begin.vi -Initializes everything to be used later in the project -Where motors and joysticks are "opened" i.e. initialized -First .vi file in the project that runs Autonomous Independent.vi -Defines what happens in the pre-game, while the robot is running a pre-dertimined list of duties Teleop.vi -Defines what happens in the main and post-game, while the robot is being controlled from the Driver station Test.vi -? Disabled.vi -? Vision Processing.vi -? -Assuming this is where I put stuff for the auto tracking system and the camera feed. Anything else? Periodic Tasks.vi -? Robot Global Data.vi -? -Assuming this is where I define global variables? What separates global data here compared to joysticks and motors I open/initialize in the Begin.vi file and use throughout the project? (that seems pretty "global" to me) Finish.vi -un-initialize everything, basically the same (but opposite) as Begin.vi -Where you close motors and joysticks, therefore rendering them disabled -The last .vi file in the project that runs Robot Main.vi (NOT part of team code folderr) -Where you deploy the LabVIEW project as a whole to the cRIO from -? Any other use ? Last edited by ctccromer : 10-01-2013 at 18:49. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|