Virtual Reality: Introduction To
Virtual Reality: Introduction To
INTRODUCTION TO
Virtual Reality
1
11/28/2018
Course outline
• EXPERIMENTATION THROUGH GRAPHICAL
PROGRAMMING: Introduction, the front
panel, the block diagram, data acquisition,
components of a DAQ system, DAQ hardware
configuration, DAQ assistant, analog I/O,
digital I/O, typical sensor interface examples.
2
11/28/2018
Learning objectives
• Be able to
DAQ
• Data acquisition involves measuring signals (from a real-world
physical system) from different sensors, and digitizing the
signals for storage, analysis and presentation.
• Data acquisition is the digitizing and processing of multiple
sensor or signal inputs for the purpose of monitoring, analyzing
and/or controlling systems and processes.
3
11/28/2018
Digital - discrete
Encoding - assigning a
Quantizing - breaking down analog value is a digital word or
set of finite states number to each state
and matching it to the
input signal
Example
4
11/28/2018
Resolution
• Resolution (number of discrete values the converter
(Q) = (Vmax-Vmin)/ N
5
11/28/2018
Sampling Rate
Signal conversion
6
11/28/2018
NI USB 6008
NI USB 6009
7
11/28/2018
labVIEW
Sensor Module
Sensing (or
Transducer) Sensor Interface
Signal conditioning
A/D conversion
8
11/28/2018
LABVIEW-Introduction
• Lab VIEW is a graphical programming language (G) that
uses icons instead of lines of text to create applications.
• Lab VIEW Programs Are Called Virtual Instruments (VIs)
because their appearance and operation imitate physical
instruments like Volt meter, Digital Multi-meter.
• Lab VIEW contains a set of VIs and functions for acquiring ,
analyzing , displaying and storing data.
• It includes analysis functions for differential equations,
optimization, curve fitting, calculus, linear algebra, statistics
and so on.
User – Interface
• Front Panel
• Controls = Inputs
• Indicators = Outputs
• Block Diagram
• Accompanying
“program” for front
panel
• Components “wired”
together
9
11/28/2018
VI Front Panel
Front Panel Icon
Toolbar
Boolean
Control Graph
Legend
Waveform
Graph
Plot Scale
Legend Legend
VI Block Diagram
Block
Diagram
Toolbar Divide
Function
SubVI
Graph
Terminal
Wire
Data
10
11/28/2018
Functions Palette
(Block Diagram Window)
Status Toolbar
Run Button
11
11/28/2018
Loops
• Nearly all programs involve some
sort of loop where all or sections of
the program must be repeated.
12
11/28/2018
NI – DAQmx
NI - DAQmx
13
11/28/2018
14