Year: 2011
Type: book-chapter
Abstract: Graphical programming languages (G-language) in LabVIEW provide easy and intuitive coding, where even a beginner without any programming skills can build simple software and get results back quickly. The versatile collection of blocks providing most functions needed for a general user and simple graphical representation of dataflow that resembles flow charts are main advantages of G-language over text-based programming. However, when project grows and the complexity increases, the one dimensional programming space in text based languages starts to show advantages since it allows program flow in vertical direction only making it easier to follow and organize. The programming space in case of Glanguage is at least two dimensional with no data flow direction constraints. Furthermore, the use of structures for data flow manipulation (e.g. sequence, event structure etc.), at least one additional dimension is introduced. Thus, a project that started as a simple and easy task that could be handled by a nonprogrammer quickly becomes vast and hard to understand. Usually the graphical code quickly grows over one computer screen making data flow very hard to follow and it becomes difficult to insert or change any functionality later on. Finally, it comes to a point, when one asks himself whether it would not be better to start all over again keeping in mind all the required software functionality. At that stage, the programmer already has much more clear ideas how his software should work and thus he can build the software from beginning in a better, much more organized way that it would be easy to modify and upgrade later on. This happens quite often to beginners and for that reason it is good to know some common graphical programming rules. They are recommended to follow from the beginning of graphical code development in order to avoid such problems and save a lot of valuable time later on when the code grows. When making software where very fast execution is required, (eq. handling fast data stream in real time) a detailed knowledge of memory and execution time requirements is essential. By knowing how LabVIEW handles data, one can build the program in a way that handles the data effectively without any unnecessary memory or execution overhead. Software that interacts with the end user needs a kind of a user interface, which is one of the most important features of LabVIEW. The controls and indicators on front panel even substitute variables in text-based languages. User interface thus grows together with program code and cannot be apart from each other. The execution flow of a simple LabVIEW code is basically linear from data source over some processing nodes to the
Source: InTech eBooks
DOI: 10.5772/24481
Author: Marko Jankovec
Institution: University of Ljubljana
Language: English
Subfield: Control and Systems Engineering
Field: Engineering
Domain: Physical Sciences
Open Access status: hybrid
OpenAlex ID: W1568098871
