Go to Post There are no simple solutions, as every solution has its own problems. - M. Lillis [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 21-01-2011, 00:00
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Super Rookies

The front panel shows dials and switches and buttons. It's the inputs and outputs of your function, generally. However, for FRC you don't ever really use the front panel for most things, because the inputs and outputs are done with just the "run motor" and "get joystick" commands.

The block diagram is where the programming is done. All the thin lines are called "wires" and they connect "functions." The wires should be a familiar concept to what NXT has (I think, I just use LabVIEW for programming NXT). They are variables: numbers that you modify with functions. Functions are basically things to modify the variables, but for FRC you'll use many that take the wires in and run motors using them.

For example, when you go to robot main, find teleop.vi. In there, you'll see some sort of "get joystick" with a wire coming out of it, which goes into an "arcade drive" function. The get joystick function returns wires that give the x and y positions of the joystick, and the arcade drive function takes x and y positions and runs the motors. These are a perfect match, so all their wires go together.

I suppose you're probably wondering what the purple wires going into the functions are also. These are "devise references", and basically tell the arcade drive function which motors to run (is it the ones connected to port 2 or port 3?)
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi