Что такое findslide.org?

FindSlide.org - это сайт презентаций, докладов, шаблонов в формате PowerPoint.


Для правообладателей

Обратная связь

Email: Нажмите что бы посмотреть 

Яндекс.Метрика

Презентация на тему TLB – Top Level Baseline

Top Level?A VI that can be considered the primary of a systemor major component of a systemTypically has front panel shownbut not a requirementControls flow of application and processingProcessing happens within executed statesRuns for lifetime of
TLB – Top Level Baselineapplication and componenttemplate/toolNorman KirchnerNorm.Kirchner@NI.com Top Level?A VI that can be considered the primary of a systemor Get InstalledInstall VI Package Manager (free community edition)www.jki.net Install packagehttp://lavag.org/topic/13003-tlb-top-level-baseline/Restart LVRefreshes tools menu Get DevelopingTools>>TLB – New BaselineFollow Interactive Dialog Baseline ArchitectureApplication INITonce and only once codeEvent Handler Loopuser interaction responsePrimary Execution Application INITSequence of casesprimes the applicationstacked instead of flat for cleanlinessNot ‘all’ Event HandlerResponsive to button pushes and value changesPre-defined cases handle window close Primary ExecutionPre-defined cases handle common functionsInitError95% of work happens here‘Default’ case handles state typos Application CloseHandles display consideration if built into EXENo real processing should happen The SHIFTERMaster state clusterALL data associated with applicationNEVER send into sub-VIEasily add elements through Typedef shortcut ‘User Parameters’Scalar inputs on the front panelnumerics, strings, etc.Register for ‘value change’ ‘Display Data’Scalars, plots etcAny thing that needs to get updated on the Extra Handy ThingsGracefully shuts down both loopsIdle state defaults to 1s delayCaches Closing noteAppropriate for simple and intermediate grade applicationsTHIS IS NOT OVERKILL –
Слайды презентации

Слайд 2 Top Level?
A VI that can be considered the

Top Level?A VI that can be considered the primary of a

primary of a system
or major component of a system

Typically

has front panel shown
but not a requirement

Controls flow of application and processing
Processing happens within executed states

Runs for lifetime of application or component

Слайд 3 Get Installed
Install VI Package Manager (free community edition)
www.jki.net
Install

Get InstalledInstall VI Package Manager (free community edition)www.jki.net Install packagehttp://lavag.org/topic/13003-tlb-top-level-baseline/Restart LVRefreshes tools menu

package
http://lavag.org/topic/13003-tlb-top-level-baseline/
Restart LV
Refreshes tools menu


Слайд 4 Get Developing
Tools>>TLB – New Baseline
Follow Interactive Dialog


Get DevelopingTools>>TLB – New BaselineFollow Interactive Dialog

Слайд 5 Baseline Architecture
Application INIT
once and only once code
Event Handler

Baseline ArchitectureApplication INITonce and only once codeEvent Handler Loopuser interaction responsePrimary

Loop
user interaction response
Primary Execution Loop
main flow of program

App Close
close

references & shutdown


Слайд 6 Application INIT
Sequence of cases
primes the application
stacked instead of

Application INITSequence of casesprimes the applicationstacked instead of flat for cleanlinessNot

flat for cleanliness

Not ‘all’ init. code goes here
Just once

and only once stuff

Enqueues specific set of states to Primary Execution






Слайд 7 Event Handler
Responsive to button pushes and value changes

Pre-defined

Event HandlerResponsive to button pushes and value changesPre-defined cases handle window

cases handle window close and shutdown

Source of queued messages

to Primary Execution







Слайд 8 Primary Execution
Pre-defined cases handle common functions
Init
Error

95% of work

Primary ExecutionPre-defined cases handle common functionsInitError95% of work happens here‘Default’ case handles state typos

happens here

‘Default’ case handles state typos






Слайд 9 Application Close
Handles display consideration if built into EXE

No

Application CloseHandles display consideration if built into EXENo real processing should

real processing should happen here
Use ‘Exit’ in Primary Execution





Слайд 10 The SHIFTER
Master state cluster
ALL data associated with application

NEVER

The SHIFTERMaster state clusterALL data associated with applicationNEVER send into sub-VIEasily add elements through Typedef shortcut

send into sub-VI

Easily add elements through Typedef shortcut


Слайд 11 ‘User Parameters’
Scalar inputs on the front panel
numerics, strings,

‘User Parameters’Scalar inputs on the front panelnumerics, strings, etc.Register for ‘value

etc.

Register for ‘value change’ event dynamically
Prevents event structure bloat

All

terminals in 1 state: Update User Param.
Enables all param to be accessible to entire program without need for local Var


Слайд 12 ‘Display Data’
Scalars, plots etc
Any thing that needs to

‘Display Data’Scalars, plots etcAny thing that needs to get updated on

get updated on the panel
Store in shifter to provide

data access to entire app
Instead of outputting directly to indicator
Call ‘Update Display’ state to refresh display

Слайд 13 Extra Handy Things
Gracefully shuts down both loops
Idle state

Extra Handy ThingsGracefully shuts down both loopsIdle state defaults to 1s

defaults to 1s delay
Caches current values of controls on

startup in case of change while not running
Graceful error in case of typo
Interactive or headless execution
Your choice
Error handling allows Stop OR continue

  • Имя файла: tlb-–-top-level-baseline.pptx
  • Количество просмотров: 95
  • Количество скачиваний: 0