Programming with LabVIEW - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

Programming with LabVIEW

Description:

Intro to programming and Programming with LabVIEW * * * * * * * Variables X 5 1.5 true left int float Boolean String Operations with variables Basic operation ... – PowerPoint PPT presentation

Number of Views:98
Avg rating:3.0/5.0
Slides: 20
Provided by: ballardro
Category:

less

Transcript and Presenter's Notes

Title: Programming with LabVIEW


1
Programming with LabVIEW
Intro to programming and
2
(No Transcript)
3
Variables
float
Boolean
1.5
true
left
X
5
int
String
4
Operations with variables
  • Basic operation include multiplication, division,
    addition and subtraction
  • Most other things you would want to use is in
    there

5
(No Transcript)
6
Basics of LabVIEW
7
Case statements
  • LabVIEWs equivlent to the IF statement
  • One side of it will fire if the Boolean statement
    you feed it is true, the other side if it is
    false.

8
(No Transcript)
9
loops
10
Setting values to motors
11
(No Transcript)
12
Getting input from sensors
13
Where to get help (nice and quickly)
14
(No Transcript)
15
Easy exercises
Exercise 1
Exercise 2
Have two buttons and a slider, each button should
add a certain amount to the slider If you finish
early put a dial with each slider that represents
the amount it adds to the slider Extra bonus
put a third button that changes whether the
buttons add or multiply.
Create two dials and have an output that displays
the two added together, and another that displays
the second one subtracted from the first one. If
you finish this early, make a light next to each
one that lights up if its higher than the other
one.
16
Example solutions
17
(No Transcript)
18
More advanced exercises
Exercise 1
Exercise 2
Create four dials to represent each motor, each
ranging from -1 to 1. Take the data from them and
output which direction the robot is going. EX
motors 1 and 2 are at 1, and 3 and 4 are at -1.
output would be turning right
Put two dials to represent the x and y input from
a joystick, and output a value from -1 to 1 to
send to each of the four motors. (just use
sliders instead of actually connecting motors)
Y1
1
3
X-1
X1
2
4
Y-1
19
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com