outline - national instrumentsaustralia.ni.com/sites/default/files/using labview templates...
Post on 05-Jun-2018
222 Views
Preview:
TRANSCRIPT
Outline
• Motivation
• Terminology
• Summary of templates and sample projects in LabVIEW 2012
• Introduction to the Create Project dialog box
• Desktop Templates • Simple State Machine
• Queued Message Handler
• Desktop Sample Projects (Introduction)
Motivation
• Increase efficiency by starting with more than a blank project/VI
• Templatised architecture
• Reduce errors and increase reuse with included libraries
• Shorten learning curves by only changing relevant code
• User-owned, project-based code from the start
• Use a design recommended by NI
Why should you use a template or a sample project?
Terminology
Template
Common architecture that you must
modify to accomplish your goals.
Sample Project
Functioning, template-based project
that can be further modified to
accomplish your custom goals.
Terminology
Template/Sample Project
• Access with Create Project dialog box
• Basis for an actual application
• User owns the code
• Used to accomplish a goal
What is the difference between a
template/sample project and an example?
Example
• Access with Example Finder
• Illustrates specific concept(s)
• Code is part of LabVIEW
• Used to teach
10
Templates – What is a Design Pattern?
• Formal Solution to a problem
• Widely accepted
• Easily recognized
• Implementation
13
Design Patterns – Basic Tools
• Loops
• Shift Registers
• Case Structures
• Enumerated Constant
• Events Structures
top related