07-01-2011 12:27 AM
Hi ,
I am not new to Labview but i want ot know and I am very eager to know how labview works , which code it generates , how it will interacting with hardware.
plz do reply
regards
mahadev
07-01-2011 02:01 AM
Mahadev,
LabVIEW is a programming language, so the compiled code is machine code. You have to have the LV Run Time Engine (RTE) installed in order to execute that machine code. A RTE is a collection of OS components which enables the OS to control, schedule and manage the process created by the application.
The concept of dedicated RTEs is not unique to LV (even though some programmers around the world do think so). For comparison take a look on the .NET Framework, which is nothing more (or less) than a RTE for .NET applications.
Hardware is interfaced just the same way as in any other programming language: You need a driver including an interface (API) which you can use in LV.
hope this helps,
Norbert
07-01-2011 02:22 AM
mahadev wrote:I am not new to Labview but i want ot know and I am very eager to know how labview works , which code it generates , how it will interacting with hardware.
Your question is very vague and could be understood in many different ways. We all know that LabVIEW "works", but I am not sure what you mean by "how". What exactly do you want to know? Are you interested in the details under the hood or are you just trying to learn how to write a program in LabVIEW?
LabVIEW typically does not intereact directly with hardware. Instead, it interacts with hardware drivers that do the lowlevel stuff. For example, it can interact with DAQ hardware using DAQmx drivers.
LabVIEW is just a programming language like any other, except that the code is graphical, which eliminates the clumsy bottleneck having to compose the program as a long linear string of monochrome characters as in text based programs.
The LabVIEW compiler directly translates the graphical code into the machine code. Here is some useful information.
07-01-2011 03:18 AM
actually i wanted to know when we develop model how the actions are taken by labview to exectue it . which kind of code it will generate , does it uses any complier , assembler and all ?
sorry for being not clear
thanks and regards
mahadev
07-01-2011 03:23 AM
@mahadev wrote:
actually i wanted to know when we develop model how the actions are taken by labview to exectue it . which kind of code it will generate , does it uses any complier , assembler and all ?
LabVIEW is compiler itself.
Probably the following info will be helpful for you:
Inside LabVIEW - How the Compiler Works
Andrey.