SlideShare uma empresa Scribd logo
1 de 32
Basic LabVIEW
Kristina Landen
FRC 2093 Bowtie Brigade
knlanden@gmail.com
Who has heard of or used
LabVIEW before today?
Who has ever programmed in
another language before?
Has anyone ever programmed
for FRC before?
Overview
O What is LabVIEW?
O Get familiar
O Code 4 wheel tank drive by PWM
O Add actuator, controlled by buttons

O Global Variable benefits and usage
What is LabVIEW?
O Visual – no endless lines of code
O Easy to follow
O .vi – Virtual Instrument
Getting Familiar with
LabVIEW
At this point, I will leave the presentation, and go into
LabVIEW and explain things in there. The following
slides are what I covered.
Getting Started
O Open LabVIEW
O On the “Getting Started” window, select

“FRC cRIO Robot Project.” This will be
what you use for all of your code involving
the robot.
O Name your project something memorable.
Project Explorer
O Direct links to all of the .vi’s in your

program

This is where your team
number will go so the
code knows what it is
talking to.

Under “Team
Code” is where
you will find the
majority of the .vi
files you will need
to program the
robot.
Begin.vi
O This is where all of the things you will be

coding are initiated.
Finish.vi
O This is where you terminate all of the

things you setup in Begin.vi.
O This is important because if not done,
things on the robot don’t shut down
properly and can cause code issues later
on.
Teleop.vi
O This is where you can write code to make

the robot complete tasks, but is not
always the best place to do so.
Teleop.vi Continued
O You can put display messages to the

Driver Station here which will display
when Tele-operated mode is enabled.
This message is the name of the project
that I am working on.
Periodic Tasks.vi
O This is where I do the majority of my

programming
O Sensor data gathered here can be utilized
in Autonomous mode as well as in Teleoperated
O You can control how often sensors are
checked for data
This is where
you will be
putting code for
driving and
sensors.

If you plan to use pneumatics,
delete this Disable Structure
and fill in the refnum name and
set it up in Begin.vi and
Finish.vi.
Where Do I Get .vi’s?
O Right click – WPI Robotics Library
O WPI Robotics Library has all of the FIRST

related .vi’s needed for competition. You
will have to use .vi’s from the
“Programming” category to complete your
code.
WPI Robotics Library
Examples
O Where to find them
O How to adapt them to fit your code
In Each Example There Is…
O Initialization of ports and channels
O Closing of ports and channels
O The stuff that makes everything happen
O Bonus blinking lights, pretty graphs, and

other switches and dials
What We Have To Do…
O Recognize which part is which
O Figure out which part to put in our code
O Decide which parts to omit
O Replace inputs and outputs with Joysticks

and Motor blocks
Global Variables
O Robot Global Data.vi
O Store all sensor values, joystick values,

etc.
O Can be used ANYWHERE in the code
O Can save a lot of time
O Instead of writing the code for buttons on a

joystick each time you want to use one,
use global variables written to in Periodic
Tasks.vi
Let’s Program!!
By the end you will be able to…
O Program a 4 wheel tank or arcade drive

by PWM
O Program another actuator motor using
buttons
O Pass the name of your program to the
DriverStation
Programming Drive Motors: Begin

Before

To replace one block with
another, select the block,
right click, replace. To
After
replace a “Open 2 Motor”
with an “Open 4 Motor”,
Highlight the code for one
continue and go “Robot
joystick and copy it by
Don’t forget to change the name too!
Drive Palette, Open 4
holding control and
Motor”. Add constants to
dragging. Change the
the open ports below the
USB constant by clicking
pre-existing ones by right
it, and selecting USB 2.
clicking the hub, create,
constant.
Programming Drive Motors:
Finish

Copy the Joystick
close from below
and change the
name.
Programming Drive Motors

This is the basic
program setup for a
2 Motor Drive
chassis. However, it
is setup to run two
motors with one
joystick.
Programming Drive Motors
Copy the code for
Joystick 1 up, rename it,
then wire into the
“Unbundle” block.

(This is what the big red
arrow on the last slide was
pointing to) 

Expand the “Unbundle” block.
Programming Drive Motors
Tip: To expand a while
loop, hold control,
click, and drag where
you want more space.

Insert an “Unbundle”
block from
“Programming>Clust
er, Class, and
Variant>Unbundle”
and wire the input to
the pink pipe that
runs through the
while loop.
Programming Drive Motors
“WPI Robotics LibraryRobot Drive- Joysticks
and get the “Get” block.

“Unbundle by Name”
from ProgrammingCluster, Class, and
Variant wired to “axis”
Programming Drive Motors
Wire the pink pipe from the “Unbundle”
to the Tank Drive in order to transfer the
information from Begin to here.

Get a “Tank Drive” block
from WPI Robotics
Library- Robot Drive- Tank
Drive. Wire the outputs
from the Y axis of the two
Joysticks into the Right
and Left motor ports.
Thank You For Listening!!

Questions?

knlanden@gmail.com
503-853-6704

Mais conteúdo relacionado

Mais procurados

Final requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary ClemenceFinal requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary Clemenceclemencebonifacio
 
Creating applets.60
Creating applets.60Creating applets.60
Creating applets.60myrajendra
 
Errors that static code analysis does not find because it is not used
Errors that static code analysis does not find because it is not usedErrors that static code analysis does not find because it is not used
Errors that static code analysis does not find because it is not usedAndrey Karpov
 

Mais procurados (11)

Switch statement
Switch statementSwitch statement
Switch statement
 
Final requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary ClemenceFinal requirement for programming-Bonifacio, Mary Clemence
Final requirement for programming-Bonifacio, Mary Clemence
 
#Include
#Include#Include
#Include
 
Creating applets.60
Creating applets.60Creating applets.60
Creating applets.60
 
Parallel Lint
Parallel LintParallel Lint
Parallel Lint
 
Applet in java
Applet in javaApplet in java
Applet in java
 
27 applet programming
27  applet programming27  applet programming
27 applet programming
 
first-applet
first-appletfirst-applet
first-applet
 
java Applet Introduction
java Applet Introductionjava Applet Introduction
java Applet Introduction
 
First session quiz
First session quizFirst session quiz
First session quiz
 
Errors that static code analysis does not find because it is not used
Errors that static code analysis does not find because it is not usedErrors that static code analysis does not find because it is not used
Errors that static code analysis does not find because it is not used
 

Semelhante a First fare 2013 basic-labview

arduino
arduinoarduino
arduinomurbz
 
Tutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa CTutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa CMuhammad Kennedy Ginting
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Dr. Pankaj Zope
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocksTech Bikram
 
Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeansHuu Bang Le Phan
 
Cvavr getting started with atmel studio
Cvavr getting started with atmel studioCvavr getting started with atmel studio
Cvavr getting started with atmel studioBayu Agung
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptxyosikit826
 
Coding Lesson (iOS for non-developers) by Zakery Kline and Roger Kerse
Coding Lesson (iOS for non-developers) by Zakery Kline and Roger KerseCoding Lesson (iOS for non-developers) by Zakery Kline and Roger Kerse
Coding Lesson (iOS for non-developers) by Zakery Kline and Roger KerseEuropean Innovation Academy
 
MoodLocator HwT
MoodLocator HwTMoodLocator HwT
MoodLocator HwTJDihlmann
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10stemplar
 
Open frameworks 101_fitc
Open frameworks 101_fitcOpen frameworks 101_fitc
Open frameworks 101_fitcbenDesigning
 
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxransayo
 
Pic programming gettingstarted
Pic programming gettingstartedPic programming gettingstarted
Pic programming gettingstartedAjit Padmarajan
 
From SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurde
From SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurdeFrom SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurde
From SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurdeRodolpho Concurde
 
A Long-Awaited Check of Unreal Engine 4
A Long-Awaited Check of Unreal Engine 4A Long-Awaited Check of Unreal Engine 4
A Long-Awaited Check of Unreal Engine 4Andrey Karpov
 

Semelhante a First fare 2013 basic-labview (20)

Lecture 2
Lecture 2Lecture 2
Lecture 2
 
arduino
arduinoarduino
arduino
 
Tutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa CTutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa C
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
 
Fuzzing - Part 2
Fuzzing - Part 2Fuzzing - Part 2
Fuzzing - Part 2
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocks
 
Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeans
 
Cvavr getting started with atmel studio
Cvavr getting started with atmel studioCvavr getting started with atmel studio
Cvavr getting started with atmel studio
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptx
 
Coding Lesson (iOS for non-developers) by Zakery Kline and Roger Kerse
Coding Lesson (iOS for non-developers) by Zakery Kline and Roger KerseCoding Lesson (iOS for non-developers) by Zakery Kline and Roger Kerse
Coding Lesson (iOS for non-developers) by Zakery Kline and Roger Kerse
 
MoodLocator HwT
MoodLocator HwTMoodLocator HwT
MoodLocator HwT
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10
 
Open frameworks 101_fitc
Open frameworks 101_fitcOpen frameworks 101_fitc
Open frameworks 101_fitc
 
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docx
 
Pic programming gettingstarted
Pic programming gettingstartedPic programming gettingstarted
Pic programming gettingstarted
 
Wmc lab (1)
Wmc lab (1)Wmc lab (1)
Wmc lab (1)
 
From SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurde
From SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurdeFrom SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurde
From SEH Overwrite with Egg Hunter to Get a Shell_by_RodolphoConcurde
 
Lab (1) installation of python
Lab (1) installation of pythonLab (1) installation of python
Lab (1) installation of python
 
A Long-Awaited Check of Unreal Engine 4
A Long-Awaited Check of Unreal Engine 4A Long-Awaited Check of Unreal Engine 4
A Long-Awaited Check of Unreal Engine 4
 
C Language Presentation.pptx
C Language Presentation.pptxC Language Presentation.pptx
C Language Presentation.pptx
 

Mais de Oregon FIRST Robotics

Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST Robotics
 
First fare 2013 business plan presentation
First fare 2013   business plan presentationFirst fare 2013   business plan presentation
First fare 2013 business plan presentationOregon FIRST Robotics
 
First fare 2013 competitive analysis presentation
First fare 2013   competitive analysis presentationFirst fare 2013   competitive analysis presentation
First fare 2013 competitive analysis presentationOregon FIRST Robotics
 
First fare 2013 website design for frc teams
First fare 2013   website design for frc teamsFirst fare 2013   website design for frc teams
First fare 2013 website design for frc teamsOregon FIRST Robotics
 
FIRSTFare 2013 overview of electronics-2014
FIRSTFare 2013   overview of electronics-2014FIRSTFare 2013   overview of electronics-2014
FIRSTFare 2013 overview of electronics-2014Oregon FIRST Robotics
 
First fare 2013 manipulators firstfare 2013
First fare 2013   manipulators firstfare 2013First fare 2013   manipulators firstfare 2013
First fare 2013 manipulators firstfare 2013Oregon FIRST Robotics
 
First fare 2013 district model overview 2014
First fare 2013   district model overview 2014First fare 2013   district model overview 2014
First fare 2013 district model overview 2014Oregon FIRST Robotics
 
First fare 2013 crowdfunding 101 (beginner) with notes
First fare 2013   crowdfunding 101 (beginner) with notesFirst fare 2013   crowdfunding 101 (beginner) with notes
First fare 2013 crowdfunding 101 (beginner) with notesOregon FIRST Robotics
 
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST TeamsOregon FIRST Robotics
 
2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview 2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview Oregon FIRST Robotics
 
FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013Oregon FIRST Robotics
 
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinarOregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x172013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x17Oregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 42013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 4Oregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 32013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 3Oregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster - 2
2013 Autodesk Oregon Regional Poster - 22013 Autodesk Oregon Regional Poster - 2
2013 Autodesk Oregon Regional Poster - 2Oregon FIRST Robotics
 

Mais de Oregon FIRST Robotics (20)

Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3
 
Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2
 
Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1
 
Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4
 
First fare 2013 business plan presentation
First fare 2013   business plan presentationFirst fare 2013   business plan presentation
First fare 2013 business plan presentation
 
First fare 2013 competitive analysis presentation
First fare 2013   competitive analysis presentationFirst fare 2013   competitive analysis presentation
First fare 2013 competitive analysis presentation
 
First fare 2013 website design for frc teams
First fare 2013   website design for frc teamsFirst fare 2013   website design for frc teams
First fare 2013 website design for frc teams
 
First fare 2013 pneumatics 2013
First fare 2013   pneumatics 2013First fare 2013   pneumatics 2013
First fare 2013 pneumatics 2013
 
FIRSTFare 2013 overview of electronics-2014
FIRSTFare 2013   overview of electronics-2014FIRSTFare 2013   overview of electronics-2014
FIRSTFare 2013 overview of electronics-2014
 
First fare 2013 manipulators firstfare 2013
First fare 2013   manipulators firstfare 2013First fare 2013   manipulators firstfare 2013
First fare 2013 manipulators firstfare 2013
 
First fare 2013 district model overview 2014
First fare 2013   district model overview 2014First fare 2013   district model overview 2014
First fare 2013 district model overview 2014
 
First fare 2013 crowdfunding 101 (beginner) with notes
First fare 2013   crowdfunding 101 (beginner) with notesFirst fare 2013   crowdfunding 101 (beginner) with notes
First fare 2013 crowdfunding 101 (beginner) with notes
 
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
 
2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview 2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview
 
FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013
 
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
 
2013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x172013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x17
 
2013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 42013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 4
 
2013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 32013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 3
 
2013 Autodesk Oregon Regional Poster - 2
2013 Autodesk Oregon Regional Poster - 22013 Autodesk Oregon Regional Poster - 2
2013 Autodesk Oregon Regional Poster - 2
 

Último

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 

Último (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 

First fare 2013 basic-labview

  • 1. Basic LabVIEW Kristina Landen FRC 2093 Bowtie Brigade knlanden@gmail.com
  • 2. Who has heard of or used LabVIEW before today?
  • 3. Who has ever programmed in another language before?
  • 4. Has anyone ever programmed for FRC before?
  • 5. Overview O What is LabVIEW? O Get familiar O Code 4 wheel tank drive by PWM O Add actuator, controlled by buttons O Global Variable benefits and usage
  • 6. What is LabVIEW? O Visual – no endless lines of code O Easy to follow O .vi – Virtual Instrument
  • 7. Getting Familiar with LabVIEW At this point, I will leave the presentation, and go into LabVIEW and explain things in there. The following slides are what I covered.
  • 8. Getting Started O Open LabVIEW O On the “Getting Started” window, select “FRC cRIO Robot Project.” This will be what you use for all of your code involving the robot. O Name your project something memorable.
  • 9.
  • 10. Project Explorer O Direct links to all of the .vi’s in your program This is where your team number will go so the code knows what it is talking to. Under “Team Code” is where you will find the majority of the .vi files you will need to program the robot.
  • 11. Begin.vi O This is where all of the things you will be coding are initiated.
  • 12. Finish.vi O This is where you terminate all of the things you setup in Begin.vi. O This is important because if not done, things on the robot don’t shut down properly and can cause code issues later on.
  • 13. Teleop.vi O This is where you can write code to make the robot complete tasks, but is not always the best place to do so.
  • 14. Teleop.vi Continued O You can put display messages to the Driver Station here which will display when Tele-operated mode is enabled. This message is the name of the project that I am working on.
  • 15. Periodic Tasks.vi O This is where I do the majority of my programming O Sensor data gathered here can be utilized in Autonomous mode as well as in Teleoperated O You can control how often sensors are checked for data
  • 16. This is where you will be putting code for driving and sensors. If you plan to use pneumatics, delete this Disable Structure and fill in the refnum name and set it up in Begin.vi and Finish.vi.
  • 17. Where Do I Get .vi’s? O Right click – WPI Robotics Library O WPI Robotics Library has all of the FIRST related .vi’s needed for competition. You will have to use .vi’s from the “Programming” category to complete your code.
  • 19. Examples O Where to find them O How to adapt them to fit your code
  • 20. In Each Example There Is… O Initialization of ports and channels O Closing of ports and channels O The stuff that makes everything happen O Bonus blinking lights, pretty graphs, and other switches and dials
  • 21. What We Have To Do… O Recognize which part is which O Figure out which part to put in our code O Decide which parts to omit O Replace inputs and outputs with Joysticks and Motor blocks
  • 22. Global Variables O Robot Global Data.vi O Store all sensor values, joystick values, etc. O Can be used ANYWHERE in the code O Can save a lot of time O Instead of writing the code for buttons on a joystick each time you want to use one, use global variables written to in Periodic Tasks.vi
  • 24. By the end you will be able to… O Program a 4 wheel tank or arcade drive by PWM O Program another actuator motor using buttons O Pass the name of your program to the DriverStation
  • 25. Programming Drive Motors: Begin Before To replace one block with another, select the block, right click, replace. To After replace a “Open 2 Motor” with an “Open 4 Motor”, Highlight the code for one continue and go “Robot joystick and copy it by Don’t forget to change the name too! Drive Palette, Open 4 holding control and Motor”. Add constants to dragging. Change the the open ports below the USB constant by clicking pre-existing ones by right it, and selecting USB 2. clicking the hub, create, constant.
  • 26. Programming Drive Motors: Finish Copy the Joystick close from below and change the name.
  • 27. Programming Drive Motors This is the basic program setup for a 2 Motor Drive chassis. However, it is setup to run two motors with one joystick.
  • 28. Programming Drive Motors Copy the code for Joystick 1 up, rename it, then wire into the “Unbundle” block. (This is what the big red arrow on the last slide was pointing to)  Expand the “Unbundle” block.
  • 29. Programming Drive Motors Tip: To expand a while loop, hold control, click, and drag where you want more space. Insert an “Unbundle” block from “Programming>Clust er, Class, and Variant>Unbundle” and wire the input to the pink pipe that runs through the while loop.
  • 30. Programming Drive Motors “WPI Robotics LibraryRobot Drive- Joysticks and get the “Get” block. “Unbundle by Name” from ProgrammingCluster, Class, and Variant wired to “axis”
  • 31. Programming Drive Motors Wire the pink pipe from the “Unbundle” to the Tank Drive in order to transfer the information from Begin to here. Get a “Tank Drive” block from WPI Robotics Library- Robot Drive- Tank Drive. Wire the outputs from the Y axis of the two Joysticks into the Right and Left motor ports.
  • 32. Thank You For Listening!! Questions? knlanden@gmail.com 503-853-6704