Published:2011/8/2 2:39:00 Author:Amy From:SeekIC
Dr. Thomas Scherer
What is LabVIEW?
The first version of LabVIEW (1.0) appeared in 1986, initially only for the Apple Macintosh computer. At that point the Mac itself was already two years old and represented a revolution in user-friendliness in the history of personal computing. Text-based entry was replaced by graphical metaphors, including a desktop with windows, waste basket and mouse. High-resolution bit-mapped displays replaced the chunky graphics we were accustomed to from DOS and its cousins. Nl translated this metaphor into the field of measurement and test.
At that time various computer-controlled instruments had already been available for some time, although they were very expensive. They were based on the GPIB (general purpose interface bus). The essence of Nl’s idea was to create a graphical programming interface where these instruments were represented by icons. In addition, mathematical functions, input units (such as switches) and output units (such as LEDs or oscilloscope displays) were also represented using graphical symbols. The icons were linked not by a couple of lines of code, but by a kind of ’wire’. Following the metaphor, the corresponding tool is represented in the user interface by a wiring pen, as frequently used in prototyping.
Figure 1 shows the appearance of a very simple arrangement of data source, data processing and data display units, forming a ’wired circuit’. The program does simply this: the input value entered on the control panel (2.5) is multiplied by a factor (2), and the result (5) is displayed on the scale of a simulated analogue meter. The function is displayed in the diagram using an amplifier symbol with the factor 2 shown. Wires run from the numeric input unit and the constant to the two inputs of a multiplier unil, and from the output of the multiplier to the input of the output unit.
Data and numeric values, rather than currents, flow through these virtual wires, in this example from left lo right. A module or icon executes its function v/hen data are present at all its inputs. The sequence of processing operations is therefore not like that in normal programming languages where the flow of the text is followed from top to bottom (except where jumps occur), but depends instead on the flow of data. This is called a data flow driven architecture and gives great flexibility. Nl generally refers lo the individual modules as Virtual Instruments (Vis). An important further consequence of the architecture is that a number of independent (that is, not interconnected) Vis can be placed in a diagram and they will be processed in parallel: multitasking is thus a built-in feature of LabVIEW.
Further, it is possible to select either a part or the whole of such a module, along with its wiring, and with the click of the mouse bring it into a new module which can have its own icon. In this way code can be written once and then easily reused. This process is analogous to the organization of code in normal programming languages into functions and procedures. In LabVIEW, by comparison, things are much more transparent.
From our example we can clearly see that programming in this style is the most natural process imaginable. It is very similar to drawing a circuit diagram, where the individual Vis represent electronic components. It is an easy intuitive step to go from constructing electronic circuits to programming in LabVIEW. For classically-trained programmers and computer scientists, on the other hand, accustomed to the traditional methods of writing software, this technology takes some getting used to. A completely new way of thinking is required. Perhaps they would find it worth changing?
Reprinted Url Of This Article: http://www.seekic.com/blog/project_solutions/2011/08/02/Virtual_Soldering_(2).html
Print this Page | Comments | Reading(374)
Author:Ecco Reading(32821)
Author:Ecco Reading(3526)
Author:Ecco Reading(3246)
Author:Ecco Reading(3801)
Author:Ecco Reading(5331)
Author:Ecco Reading(3315)
Author:Ecco Reading(3462)
Author:Ecco Reading(3604)
Author:Ecco Reading(4009)
Author:Ecco Reading(3807)
Author:Ecco Reading(3748)
Author:Ecco Reading(3780)
Author:Ecco Reading(6094)
Author:Ecco Reading(3764)
Author:Ecco Reading(4579)