Go to Post For guys, is the appropriate term "manpris". ? - Chris Fultz [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2015, 12:08
DN1LE DN1LE is offline
Registered User
FRC #5638
 
Join Date: Jan 2015
Location: United States
Posts: 3
DN1LE is an unknown quantity at this point
Where to start?

We are a rookie team with no programming experience. We have followed the Getting Started with the 2015 Control System. We have successfully ran the Benchtop Test Program for LabView. We are having a hard time grasping where to start modifying code. Any advice or help would be appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2015, 13:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Where to start?

Start with Tutorial 4 - Developing a Robot Project and Tutorial 5 - Editing Team Code VIs.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2015, 14:22
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 252
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: Where to start?

Hello and welcome to the magnificent forum that is Chief Delphi.
I agree the first time you look at labview it can be VERY confusing, but you must remember, it follows the same rules and concepts of text based languages, it may be easy to get lost, but you can get almost anything to work if you follow a few simple steps.

1) "Get your feet wet, ask questions later." Simply put this means go ahead and fool around with labview and see what you can figure out on your own. Programming is a very large subject and you will not learn everything by asking questions.
2) FIRST supplies example code. Not only is this code extremely nice for demonstrations, but it can be easily integrated into your project. You just need to know where to put the various parts of the example.
3) A fresh roboRIO project is a working project. It may only give you a basic arcade drivetrain, but it includes all of the support code, and has plenty of comments for you to read and figure out what goes where.
4) Don't be afraid to ask questions, everyone thinks differently and sometimes what may be obvious to some is out of reach of others. Chief Delphi is a great community and will answer your questions in a relatively quick manner; provided you fully explain the problem, attach screenshots, etc.

Good luck with your programming endeavors.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2015, 15:52
DN1LE DN1LE is offline
Registered User
FRC #5638
 
Join Date: Jan 2015
Location: United States
Posts: 3
DN1LE is an unknown quantity at this point
Re: Where to start?

I've been reading and following the tutorials and messing with the default project. If a piece a code is put together I can follow what it is doing. However I am struggling with programming joystick buttons. There are plenty of previous code examples, with Unbundle by Name. The array example in the 2014 to 2015 Porting Guide is not helping. Just to understand how it works, any code examples of pushing a button to activate an output?
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2015, 16:28
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Where to start?

Quote:
Originally Posted by DN1LE View Post
...I am struggling with programming joystick buttons. There are plenty of previous code examples, with Unbundle by Name.
The FRC Examples that loaded with LabVIEW for FRC 2015 show array indexing for the Joystick values. What examples are you looking at?

Quote:
...any code examples of pushing a button to activate an output?
What kind of output do you want to activate?

Last edited by Alan Anderson : 19-01-2015 at 16:32.
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2015, 09:01
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 58
mshafer1 is an unknown quantity at this point
Re: Where to start?

Quote:
Originally Posted by DN1LE View Post
The array example in the 2014 to 2015 Porting Guide is not helping. Just to understand how it works, any code examples of pushing a button to activate an output?
I am attaching a snippet (LabVIEW created picture that can be put back in LabVIEW to turn back into code). In the past, the buttons were in a cluster that could be unbundled, but now they are in an array. In text based languages, one gets a particular part of an array by placing an index in square brackets. The LabVIEW equivelant is the index array vi, which takes an array and the index you want. In this example, I have indexed button 0 (the trigger on most joysticks) and 3 (just a random other option) to resize the index vi to get more or fewer hover over it until the blue squares appear, then click and drag the bottom one.
Attached Thumbnails
Click image for larger version

Name:	joystick example.png
Views:	45
Size:	28.0 KB
ID:	17908  
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2015, 10:47
DN1LE DN1LE is offline
Registered User
FRC #5638
 
Join Date: Jan 2015
Location: United States
Posts: 3
DN1LE is an unknown quantity at this point
Re: Where to start?

Thanks to everyone for their input. Not sure what I was thinking on the buttons, I just needed to take a step farther. Sometimes the simplest things can trip you up....
Reply With Quote
Reply


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 20:12.

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