Skip to main content
Skip header

Programming Basics for Control Systems

* Exchange students do not have to consider this information when selecting suitable courses for an exchange stay.

Course Unit Code450-2041/01
Number of ECTS Credits Allocated4 ECTS credits
Type of Course Unit *Compulsory
Level of Course Unit *First Cycle
Year of Study *First Year
Semester when the Course Unit is deliveredSummer Semester
Mode of DeliveryFace-to-face
Language of InstructionCzech
Prerequisites and Co-Requisites Course succeeds to compulsory courses of previous semester
Name of Lecturer(s)Personal IDName
PRA132doc. Ing. Michal Prauzek, Ph.D.
Summary
The subject is a introductory course into the problems of programming focused on preparing students for work with specialized microprocessor systems used in process control. the students are acquainted with fundamental computer hardware components. Thge algorithms are demenstrated in C language wheras studnets are instructed in structured approaches to analysis. Practical implementation and data structures are accentuated.
Learning Outcomes of the Course Unit
The goal of the subject is to introduce student into provide students by basic appliance for control systems programming. After finishing the subject the student will be able to create elementary programs based on simple algorithmic constructions of C language in a general development environment. He will understand the realtions between some computer architectural elemetns and their correponding mapping into programming language, wich is necessary for constructing tasks using non-satandards peripherals. He will be also able to analyze and implement simple problems using structuerd approaches.
Course Contents
lectures
1. Algorithm, algorithms, basic algorithmic structures. Types and variables.
2. Basic programming construction: instruction, control commands, subroutines. The program, machine language,
machine code, binary system, programming languages.
3. Structure of the program in C language Simple inputs and výstupy.Základní data types. Branching and cycles.
4. Arrays, array element access.
5. Representation of the data base format specification. Function parameters and return values
6. Comments, headers - info, basic syntax, keywords, return values, main body, use features
7. Structure of the computer central unit, registers, RAM, address, external memory, program counter, fetch-execute cycle, aynchronní events. Inputs and outputs. Polling and interrupt bus.
8. Use PC peripherals for solving simple measurement tasks.
9. Structure, unions, enumerated types, work with bits.
10. indicators. Files. Using files in measurement tasks.
11. macros, dynamic allocation exceptions. Modules. Header files. Meaning dynamic allocation and exception mechanism for secure programming of control systems.
12. Standard Library
13. User Library
Recommended or Required Reading
Required Reading:
Herout, P. Učebnice jazyka C. Praha: [Středisko pro podporu studentů se specifickými potřebami ELSA ČVUT], 2015. ISBN 978-80-7232-383-8.
Herout, P. Učebnice jazyka C. Praha: [Středisko pro podporu studentů se specifickými potřebami ELSA ČVUT], 2015. ISBN 978-80-7232-383-8.
Recommended Reading:
Richta, K., Šaloun, P.: Programovací jazyk C, skriptum ČVUT, Praha 1998
Wirth, N.: Algoritmy a štruktúry údajov, Alfa, Bratislava 1989
Šaloun, P.: Programovací jazyk C. Skriptum FEI VŠB-TU Ostrava 1994
Šnorek, M. Richta K.: Připojování periferií k PC, Grada, 1996
Horák, J: Učebnice hardware, Computer Press, 2000
Richta, K., Šaloun, P.: Programovací jazyk C, skriptum ČVUT, Praha 1998
Wirth, N.: Algoritmy a štruktúry údajov, Alfa, Bratislava 1989
Šaloun, P.: Programovací jazyk C. Skriptum FEI VŠB-TU Ostrava 1994
Šnorek, M. Richta K.: Připojování periferií k PC, Grada, 1996
Horák, J: Učebnice hardware, Computer Press, 2000
Planned learning activities and teaching methods
Lectures, Tutorials, Experimental work in labs, Project work
Assesment methods and criteria
Task TitleTask TypeMaximum Number of Points
(Act. for Subtasks)
Minimum Number of Points for Task Passing
Credit and ExaminationCredit and Examination100 (100)51
        CreditCredit40 (40)15
                Úkoly v laboratořiLaboratory work10 1
                Závěrečný projektProject15 1
                Zápočtová písemkaWritten test15 1
        ExaminationExamination60 (60)25
                Písemná zkouškaWritten examination50 20
                Ústní zkouškaOral examination10 5