Last update: doc. RNDr. Vojtěch Chlan, Ph.D. (14.05.2019)
This course aims to familiarize the students of any given specialized field with the basics of programming in LabView – a graphical development system widely used for data acquisition and process control in physics and technical laboratories as well as in industry. The lecture will emphasize practical aspects of the subject and will be centered around
the typical tasks facing an experimental researcher, i.e., automated control of measuring devices, as well as data acquisition, logging and processing. Practical programming excercises for students and their independent work.
Last update: doc. RNDr. Vojtěch Chlan, Ph.D. (14.05.2019)
Přednáška seznámí studenty libovolného studijního oboru se základy programování v rozšířeném grafickém vývojovém prostředí LabView často používaném k řízení experimentu ve fyzikálních i jiných laboratořích. Výklad bude veden s důrazem na praktickou stránku věci a zaměřen na typické potřeby experimentátora, tedy automatizovanou obsluhu
měřících přístrojů, čtení dat a jejich zpracování. Nedílnou součástí přednášky jsou i praktická cvičení studentů u počítače a jejich práce na vybraných úlohách. Doporučeno pro studenty experimentálních oborů fyziky.
Course completion requirements -
Last update: doc. RNDr. David Schmoranzer, Ph.D. (11.10.2017)
To complete the course succesfully, it is required to obtain the credit ("zapocet") and to pass the examination. The credit must be obtained prior to, and is a requirement to taking the examination.
The credit will be awarded based on the implementation of a software program in LabVIEW. The specifications of the program will be assigned to each student individually. Generally, the idea of the program will be to control a device using LabVIEW. The program must satisfy the following criteria: functionality, documentation, readable implementation and efficient usage of LabVIEW (i.e., knowledge of LabVIEW functions and basic software architectures).
The program must be submitted before the date of the examination. Should the submitted program fail to meet the outlined criteria, the student is entitled to submit a revised version.
Last update: doc. RNDr. David Schmoranzer, Ph.D. (11.10.2017)
Podmínkou pro zakončení předmětu je složení zápočtu a zkoušky. Zápočet je nutný pro připuštění ke zkoušce.
Podmínkou udělení zápočtu je implementace zápočtového programu, jehož zadání bude studentům přiděleno individuálně. Všeobecný účel programu bude ovládání zařízení pomocí LabVIEW. Kritéria hodnocení programu budou: funkčnost, dokumentace, přehlednost implementace a efektivní využití programovacích prvků LabVIEW (t.j. znalosti funkcí nabízených v LabVIEW a základních softwarových architektur).
Zápočtový program bude nutné odevzdat před termínem zkoušky. V případě, že odevzdaný zápočtový program neodpovídá požadavkům, má student právo na odevzdání opravné verze.
Literature -
Last update: G_F (18.05.2012)
1. Havlíček Josef, Vlach Jaroslav, et al., Začínáme s LabVIEW, BEN - technická literatura, Praha 2008
2.
Last update: G_F (18.05.2012)
1. Havlíček Josef, Vlach Jaroslav, et al., Začínáme s LabVIEW, BEN - technická literatura, Praha 2008
2.
Requirements to the exam -
Last update: doc. RNDr. David Schmoranzer, Ph.D. (11.10.2017)
The course will be completed by taking an oral examination. The examination will consist of one theoretical question, a detailed discussion of the implementation of the submitted program and one practical programming exercise.
The examination topics will cover the matter discussed during the lectures.
Last update: doc. RNDr. David Schmoranzer, Ph.D. (11.10.2017)
Zkouška bude probíhat ústní formou. Zkouška bude obsahovat jednu teoretickou otázku, podrobnou diskuzi detailů implementace zápočtového programu a praktické naprogramování jednoho příkladu.
Požadavky na zkoušku budou v rozsahu učiva probraného na přednášce.
Syllabus -
Last update: G_F (18.05.2012)
1. Introduction to LabView and LabView programs (VIs), basic building blocks, principles of "non-procedural" graphical programming
2. Basic data types and dynamical signals, their representations and conversion, loops, specific notes on the use of local and global variables
3. Program execution in LabView, value transfer, parallelization (using 1 PC), sub-Vis (subroutines), recursion
4. Experiment automation; typical communication interfaces for connecting measurement devices to PCs: RS-232, GPIB, USB, Ethernet; specifications and native commands of RS-232 and GPIB; the VISA standard; LabView functions for management of communication interfaces, Instrument Assistant, typical challenges in communication with instruments
5. Practical digitization of analogue signals, DAQ cards, anti-aliasing and filters
6. Data processing - selection of mathematical functions and libraries, saving and reading data files, Data Plugins
7. Execution timing of VIs and sub-VIs, synchronization, LabView Real-Time, Trace Execution Toolkit
8. Feedback - event handling, adaptive formatting of displayed elements and of their content, feedback in designing software architectures
9. Extensions and plug-ins for other development/communication systems - web interfaces (+Web Services - since LV2009), LabView & Matlab (Mathscript), LabView & C, LabView Dashboard for iPad, Android
Practical examples of LabView-controlled systems, LabView FPGA, other applications in physics
Last update: G_F (18.05.2012)
1. Představení vývojového prostředí LabView, základní funkční prvky, grafické "neprocedurální" programování
2. Základní datové typy a dynamické signály, jejich reprezentace a konverze, realizace cyklů, použití lokálních a globálních proměnných
3. Běh programu v LabView, předávání hodnot, paralelizace úloh (na 1 PC), podprogramy, rekurze
4. Automatizace experimentu, typická rozhraní používaná pro připojení měřících přístrojů k PC: RS-232, GPIB, USB, Ethernet; specifikace a nativní příkazy RS-232 a GPIB, VISA standard, funkce LabView pro obsluhu všech zmíněných rozhraní, Instrument Assistant, typické potíže při komunikaci se zařízeními
5. Digitalizace analogových signálů v praxi, DAQ karty, anti-aliasing a filtry
6. Zpracování dat - vybrané matematické funkce a knihovny, ukládání a čtení dat, Data Plugins
7. Časování běhu programu a podprogramů, synchronizace, LabView Real-Time, Trace Execution Toolkit
8. Zpětná vazba - zpracování událostí, adaptivní formátování prvků a jejich obsahu, využití pro návrh architektury softwarového projektu
9. Rozšířitelnost a vazby na další prostředí - webová rozhraní (+Web Services - od LV2009), LabView & Matlab (Mathscript), LabView & C, LabView Dashboard for iPad, Android
10. Kompilátor LabView, LabView Runtime, tvorba spustitelných stand-alone aplikací
11. Aplikace systémů řízených LabView, LabView FPGA, další aplikace z fyziky