1 / 32

LabView Academy

LabView Academy. Bevezetés. Adatok. Dr. ing. Claudiu Pozna http://www.sze.hu/~pozna/ Horváth Ernő http://www.sze.hu/~herno/ Tanszéki honlap http://it.sze.hu. LabVIEW oktatás Magyarországon.

atalo
Télécharger la présentation

LabView Academy

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LabViewAcademy Bevezetés

  2. Adatok Dr. ing. ClaudiuPozna http://www.sze.hu/~pozna/ Horváth Ernő http://www.sze.hu/~herno/ Tanszéki honlap http://it.sze.hu

  3. LabVIEW oktatás Magyarországon

  4. A LabVIEW grafikus fejlesztői környezet első verzióját több mint 20 éve, 1986-ban adta ki a National Instruments, és azóta vezető platform az ipari alkalmazások között, a tesztelés, vezérlés, mérés és adatgyűjtés területén. • Grafikus programnyelv • Utasítások határozzák meg a program végrehajtását , adatfolyam-elv (dataflow) • Natív többszálú párhuzamos programozás

  5. Mire használhatjuk? + általános célú programnyelv

  6. New User Experienced User Advanced User Managing SoftwareEngineering in LabVIEW Advanced Architectures in LabVIEW LabVIEW Core 1 LabVIEW Core 2 LabVIEW Core 3 LabVIEW Connectivity Object-Oriented Designand Programming in LabVIEW LabVIEW Performance Certified LabVIEW Architect Exam Certified LV AssociateDeveloper Exam Certified LabVIEW Developer Exam Other Courses LabVIEW Real-Time 1 LabVIEW Real-Time 2 LabVIEW Instrument Control LabVIEW Modular Instruments LabVIEW FPGA DAQ & Signal Conditioning

  7. Gyakoribb adatformátumok

  8. Vezetékek (wire) Scalar 2D Array 1D Array Numeric Boolean String Dynamic

  9. Virtualinstrumentek (VI-ok) • Front Panel • Control = Bevitel • Indicators = Kimenet • Block Diagram • A program „kód” • Működési logika

  10. Futtatás (eszköztár) • A program futtatása ezzel az ikonnal történik • futás közben átvált feketére • De ha a nyíl összetöredezett képet mutat, akkor a program nem futtatható, mert hibás. • Folyamatos futtatás, amely ciklikusan ismételgeti program végrehajtását. • Stop gombbal leállíthatjuk a VI futását • Pillanatmegállítás a program futása • Csak a diagram ablakban találjuk meg, ha futtatás közben a „lámpát” bekapcsoljuk, akkor vizuálisan követhetjük a program futását a grafikus programban

  11. Toolspalette • LabVIEW kiválasztja azt az eszközt, ami épp kell (Felső gomb) • Front panelenésa block diagramon is • Specifikus működéshez • Elrejt/mutatWindow»Show Tools Palette

  12. Front Panel − Controls Palette • A szükséges controlok kiválasztásához

  13. Block Diagram − Functions Palette • Functions Palette

  14. Parts of a VI – Front Panel You build the front panel with controls (inputs) and indicators (outputs).

  15. Parts of a VI – Block Diagram Front panel objects appear as terminals on the block diagram.

  16. Parts of a VI – Icon/Connector Pane Icons and connector panes are necessary to use a VI as a subVI. • A subVI is a VI that appears on the block diagram of another VI. • A subVI is similar to a subroutine or function in a text-based programming language.

  17. Front Panel

  18. Controls and Indicators Controls • Input devices • Knobs, buttons, slides • Supply data to the block diagram Indicators • Output devices • Graphs, LEDs • Display data the block diagram acquires or generates

  19. Front Panel Object Styles

  20. Numeric Controls and Indicators The numeric data in a control or indicator can represent numbers of various types, such as integer or floating-point. Numeric control Increment/Decrement buttons Numeric indicator

  21. Boolean Controls and Indicators • The Boolean data type represents data that has only two options, such as True/False or On/Off. • Use Boolean controls and indicators to enter and display Boolean (TRUE/FALSE) values. • Boolean objects simulate switches, push buttons, and LEDs. Boolean indicator Boolean control

  22. Strings • The string data type is a sequence of ASCII characters . • Use string controls to receive text from the user, such as a password or user name. • Use string indicators to display text to the user.

  23. Alapvetések Front Panel Block Diagram Control Terminals Indicator Terminals Wires Nodes

  24. Adatfolyam-elvű programozás • A block diagram végrehajtási sorrendje a vezetékek által meghatározott függés, NEM pedig balról-jobbra végrehajtás • Egy „csomópont” (node) akkor hajtódik vége, ah minden szükséges bemenet rendelkezésre áll • Egy „csomópont” (node) akkor szolgáltat adatot, amilyen gyorsan módjában áll

  25. Teszt 1. Melyik függvény hajtódik végre előbb: összeadás, vagy kivonás? • Összeadás • Kivonás • Nem tudjuk 2. Melyik függvény hajtódik végre előbb: szinusz, vagy osztás? • Szinusz • Osztás • Nem tudjuk

  26. Teszt 3. Melyik függvény hajtódik végre előbb: véletlen szám generátor, osztás, vagy összeadás? a) Véletlen szám generátor b) Osztás c) Összeadás d) Nem tudjuk 4. Melyik függvény hajtódik végre később: véletlen szám generátor, kivonás, vagy összeadás? a) Véletlen szám generátor b) Kivonás c) Összeadás d) Nem tudjuk

  27. Express VI, VI ésFunkció • Express VI: interaktív VI-okdialógusablakban konfigurálhatóak • "Klasszikus" VI: a belekötött adatok alapján működik • Funkciók:alapvető műveletek (pl szorzás)nincsfront panel vagyblock diagram

  28. Block Diagram Nodes Icon Expandable Node Expanded Node • Mindhárom ugyanaz, más nézetben • Sárga: a "Klasszikus" VI • Kék: Express VI

  29. Debugging Techniques Probe Right-click on wire and select probe and it shows data as it flows through the wire segment Breakpoints Right-click on wire and select Set Breakpoint; pause execution at the breakpoint. Conditional Probe Combination of a breakpoint and a probe. Right-click on wire and select custom probe.

  30. Debugging Techniques Step Into, Over, and Out buttons for Single Stepping Click on Step Into button to enable single stepping Once Single Stepping has begun, the button steps into nodes Click on Step Over button to enable single stepping or to step over nodes Click on Step Out button to step out of nodes

  31. Gyorsbillentyűk, stb. • • Common keyboard shortcuts • Access Tools Palette with <shift>-right-click • Increment/Decrement faster using <shift> key • Tools»Options selection — set preferences in LabVIEW • VI Properties (File menu) Windows Sun Linux MacOS <Ctrl-R> <¨-R> <M-R> <z-R> Run a VI <Ctrl-F> <¨-F> <M-F> <z-F> Find object <Ctrl-H> <¨-H> <M-H> <z-H> Activate Context Help window <Ctrl-B> <¨-B> <M-B> <z-B>Remove all broken wires <Ctrl-W> <¨-W> <M-W> <z-W>Close the active window <Ctrl-E> <¨-E> <M-E> <z-E>Toggle btwn Diagram/Panel Window

  32. Köszönöm a figyelmet!

More Related