Go to Post So every 3 years robots have to lift robots? There's yet another pattern to consider. :p - ruacubfan2 [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 Rating: Thread Rating: 21 votes, 4.95 average. Display Modes
  #1   Spotlight this post!  
Unread 22-10-2013, 22:15
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
The Secret Book of FRC LabVIEW

When I first started trying to teach LabVIEW programming to FRC team members, I became very frustrated. I don't program for a living, but I do pretend to be a semi-competent LabVIEW programmer at work. But when I started with FRC, I found the Robot Framework completely mystifying. Worse, I could not find a book to explain it all to me.

Here is that book. Or rather, a first draft. Please respond with typos, errors, glaringly obvious topics I should have covered, but didn't, etc.

The book is a PDF, but zipped to squeeze under the 5 MB size limit.

The smaller zip file contains images for use with Chapter 7.

Enjoy!

-GN
Attached Files
File Type: zip The Secret Book of FRC LabVIEW.zip (4.65 MB, 1664 views)
File Type: zip Secret Test Images.zip (607.4 KB, 699 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 23-10-2013, 08:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: The Secret Book of FRC LabVIEW

I gave it a quick scan and two thumbs up. You cover a lot of material without bogging down, and you keep a sense of humor while on the journey. Good one.

Maybe you've re-inspired me to spend more time on my writing project.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 23-10-2013, 17:09
Alpha Beta's Avatar
Alpha Beta Alpha Beta is offline
Strategy, Scouting, and LabVIEW
AKA: Mr. Aaron Bailey
FRC #1986 (Team Titanium)
Team Role: Coach
 
Join Date: Mar 2008
Rookie Year: 2007
Location: Lee's Summit, Missouri
Posts: 763
Alpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond repute
Re: The Secret Book of FRC LabVIEW

I'm only half way through, and enjoying the read. It's nice to see someone else's approach to teaching LabVIEW. I'll be recommending this to our programming team as an additional viewpoint. Thank you for taking the time to put this in writing and share it with our community.

Edit: Finished it. Loved it.
__________________
Regional Wins: 2016(KC), 2015(St. Louis, Queen City), 2014(Central Illinois, KC), 2013(Hub City, KC, Oklahoma City), 2012(KC, St. Louis), 2011(Colorado), 2010(North Star)
Regional Chairman's Award: 2014(Central Illinois), 2009(10,000 Lakes)
Engineering Inspiration: 2016(Smoky Mountain), 2012(Kansas City), 2011(Denver)
Dean's List Finalist 2016(Jacob S), 2014(Cameron L), 2013(Jay U), 2012(Laura S), 2011(Dominic A), 2010(Collin R)
Woodie Flowers Finalist 2013 (Aaron Bailey)
Championships: Sub-Division Champion (2016), Finalist (2013, 2010), Semifinalist (2014), Quaterfinalist (2015, 2012, 2011)
Other Official Awards: Gracious Professionalism (2013) Entrepreneurship (2013), Quality (2015, 2015, 2013), Engineering Excellence (Champs 2013, 2012), Website (2011), Industrial Design (Archimedes/Tesla 2016, 2016, 2015, Newton 2014, 2013, 2011), Innovation in Control (2014, Champs 2010, 2010, 2008, 2008), Imagery (2009), Regional Finalist (2016, 2015, 2008)

Last edited by Alpha Beta : 23-10-2013 at 21:11.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-10-2013, 21:00
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: The Secret Book of FRC LabVIEW

I've been pretty busy lately, but hopefully when I get the time I will be able to read it and give you an opinion from someone who just learned LabVIEW in the last month.

This should be a great resource. I think that something like this was really needed.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-10-2013, 22:57
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: The Secret Book of FRC LabVIEW

I'm so glad that this arrived before the 2014 season so other rookie teams and new programmers have something to reference!

Great Job!
__________________
Per Audacia Ad Astra
Reply With Quote
  #6   Spotlight this post!  
Unread 24-10-2013, 13:00
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 156
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Re: The Secret Book of FRC LabVIEW

It's awesome!
I'll definitely use it to teach our new programming crew member's.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-10-2013, 20:30
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: The Secret Book of FRC LabVIEW

Here is a revised version that fixes a page numbering problem. I found a better PDF tool that fixes some formatting problems, and as a bonus, makes a file small enough to upload without zipping.

Happy Diagramming!

-GN
Attached Files
File Type: pdf The Secret Book of FRC LabVIEW v0.2.pdf (4.54 MB, 419 views)
Reply With Quote
  #8   Spotlight this post!  
Unread 27-10-2013, 02:19
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 156
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Its written there that new packets are sent to the robot every 100ms, isn't it 20ms rather than 100ms?
__________________
2016-2017 - Programming Mentor
Curie Sub-Division Champions with 694, 379 & 1511
2015 - Team Captain & Head of Programming Crew
Carson Sub-Division Champions with 1325, 20 & 1711
First ever Israeli team on Einstein
2014 - Team Captain & Head of Programming Crew
2013 - Head of Programming Crew
2012 - Member of Programming Crew
Reply With Quote
  #9   Spotlight this post!  
Unread 27-10-2013, 17:08
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: The Secret Book of FRC LabVIEW

Quote:
Originally Posted by GuyM142 View Post
Its written there that new packets are sent to the robot every 100ms, isn't it 20ms rather than 100ms?
You are right. I don't know where I picked up the 100 ms number. (The difficulty in finding out this kind of stuff is part of the motivation for the book.)

I'll post a corrected version in a week or so. Let's see what other wrong things can be found!!

Cheers,
-GN
Reply With Quote
  #10   Spotlight this post!  
Unread 28-10-2013, 11:01
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,747
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: The Secret Book of FRC LabVIEW

On Page 14, you mention the clean up tools that are less than helpful in Labview. As a note, the Ctrl-U block diagram cleanup was made incredibly useful a couple years ago when they limited the clean up process to only the items on the block diagram that are selected.

So, you select a group of items, press ctrl-u, and it cleans up only the highlighted code. Bam!
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote
  #11   Spotlight this post!  
Unread 28-10-2013, 13:08
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 156
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Re: The Secret Book of FRC LabVIEW

I got really confused from the PID chapter.
the math is too complex to understand right away,
maybe it'll be better to explain the idea of PID and how it works in general and some examples of it explained it detail, and only then to tell about the math behind it.

BTW can u upload the labview file of the PID simulator? (for both victor 884 and jaguar)
Reply With Quote
  #12   Spotlight this post!  
Unread 29-10-2013, 09:39
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: The Secret Book of FRC LabVIEW

This is great. i really appreciate you putting this together
Reply With Quote
  #13   Spotlight this post!  
Unread 03-11-2013, 20:44
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: The Secret Book of FRC LabVIEW

Greetings all-
Attached is a new edition of the book. It addresses some issues raised by readers, as noted below. (And thanks for the feedback! It is much appreciated.)

Quote:
Originally Posted by GuyM142 View Post
Its written there that new packets are sent to the robot every 100ms, isn't it 20ms rather than 100ms?
This error has been fixed, and the discussion of timing in Robot Main improved (I hope).

Quote:
Originally Posted by rsisk View Post
On Page 14, you mention the clean up tools that are less than helpful in Labview. As a note, the Ctrl-U block diagram cleanup was made incredibly useful a couple years ago when they limited the clean up process to only the items on the block diagram that are selected.

So, you select a group of items, press ctrl-u, and it cleans up only the highlighted code. Bam!
I never said they were less than helpful, only that the results were not to my taste. But I like the clean-up only the selection tip, and have added it.

Quote:
Originally Posted by GuyM142 View Post
I got really confused from the PID chapter.
the math is too complex to understand right away,
maybe it'll be better to explain the idea of PID and how it works in general and some examples of it explained it detail, and only then to tell about the math behind it.

BTW can u upload the labview file of the PID simulator? (for both victor 884 and jaguar)
PID control is very mathematical. There's no getting around it. But I did rather jump right into it, so I've added an introductory section that explains the basic idea. It is very difficult to explain, for example, integral control with just words, however. I'm afraid that younger students with limited math won't really be able to follow this chapter. But that will give you something to work towards for the following year!

As a matter of teaching philosophy, I don't want to upload the VIs. The only way to get good and fast at coding LabVIEW is to have lots of practice coding LabVIEW. Hence, no uploaded VIs...
Attached Files
File Type: pdf The Secret Book of FRC LabVIEW v0.3.pdf (4.51 MB, 319 views)
Reply With Quote
  #14   Spotlight this post!  
Unread 04-11-2013, 07:49
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,112
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: The Secret Book of FRC LabVIEW

Quote:
Originally Posted by gnunes View Post
It is very difficult to explain, for example, integral control with just words, however.
Proportional: "The greater the difference between the set point and the feedback signal, the stronger the output signal."

Integral: "As long as the feedback signal remains different from the set point, the integral control portion of the system keeps increasing the output signal."

Derivative: "While the feedback signal changes, the output signal is decreased based on how quickly the change is occurring."
Reply With Quote
  #15   Spotlight this post!  
Unread 05-11-2013, 22:29
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: The Secret Book of FRC LabVIEW

Quote:
Originally Posted by GuyM142 View Post
I got really confused from the PID chapter.
the math is too complex to understand right away,
maybe it'll be better to explain the idea of PID and how it works in general and some examples of it explained it detail, and only then to tell about the math behind it.
I agree. Most high school students who are learning labview don't know what dy/dx means, so I don't see why one would start a chapter with it. Maybe have a chapter explaining the math, and another with code? I don't know, just a suggestion. Really threw me off once I got to that chapter. It was all step by step based, then bam here's an equation and here is how it is used. I don't have a solution, but it needs to be addressed.

Other than that, the book is perfect. It made me laugh out loud reading it at times while in class today on my laptop. I got strange looks, but hey, I was learning. (Isn't that what is important?) Thank you for putting in so much time and effort. I consider this a holy grail for FRC. Great job. Makes me want to do one on computer vision, but there are just so many ways to do it.....
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
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 04:27.

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