Who does not make
any spelling mistake? Who does not make any structure mistakes in coding? Who prefer
icon to build a program?
All of these and
more can be seen in LabVIEW. LabVIEW stands for Laboratory Virtual Instrument
Engineering Workbench. It is a graphical programming language that allows the
user to write codes using icons. You may ask yourself a question is LabVIEW
better than C language?
Honestly, it is the
wrong question to ask. But you can ask which is better for this application or
task. If you want to build a measurement system or control system, then NI
LabVIEW system design software is a tool that can save you the risk, expense,
and inconvenience of building your own from low-level languages like C.
The relationship
between LabVIEW and C is similar to bread and flour. If you want to make a
sandwich, start with bread. If you want to bake a cake, start with flour.
Baking bread with flour from scratch can be expensive and time consuming
(especially if you just want a quick snack), but when it comes to a cake, flour
is essential. Similarly, you might find it challenging to decide which
programming language is best for your task. It comes down to using the right tool
for the right job.
1. C Gives You Low-Level Control
C is often
better for applications with tight resources that must be closely managed.
Since C is a relatively low-level language, it forces you to consider and
specify even the smallest details, such as memory assignments and threads. A
good programmer can use this low-level of control to eliminate the overhead in
most higher level implementations. At this level, you can also take advantage
of target architecture or host operating system properties to achieve greater
performance.
NI programmers wrote most of the LabVIEW libraries in C or C++ for
this reason. Operations like file I/O and analysis are as fast in LabVIEW as
they are in C because they are written in low-level languages and optimized for
each of the platforms and operating systems that LabVIEW supports.
2. Efficiency versus Control
At some point, developer efficiency trumps the need for
hand-optimized code. Relinquishing a little control to stand on the shoulders
of those who have solved similar problems can benefit many projects in terms of
quality productivity. Programming languages are constantly progressing toward
higher levels of abstraction. This helps you focus on the problem at hand
instead of the minutia of the computing.
3. LabVIEW: For Parallel Execution and Real-World I/O
No matter what the implementation language, high-level system
design and low-level implementation must inevitably split.
In
measurement and control applications, programming is just one task of a system
designer. Engineers often don’t have time to keep up with or rewrite old
software to support the advancements in computing and measurement hardware,
operating systems, and so on. They add value by figuring out how to acquire,
manipulate, and present real-world data—not by coming up with new ways to handle
memory allocations and thread pools. By using LabVIEW, you can build on top of
tested, supported, and maintained libraries of lower level code from NI.
Choosing C means you’ll need to implement, support, and maintain your own lower
level libraries or purchase them from a vendor (NI offers NI LabWindows ™/CVI software
and NI Measurement Studio for this use case).
Syntax-wise, C is optimized for sequential execution of instructions as fast as the CPU can handle them. This is perfect for pure computation, when only one task is being executed and instructions are more basic. The graphical syntax in LabVIEW, on the other hand, is optimized for the parallel execution of tasks that have real-world timing constraints.
Syntax-wise, C is optimized for sequential execution of instructions as fast as the CPU can handle them. This is perfect for pure computation, when only one task is being executed and instructions are more basic. The graphical syntax in LabVIEW, on the other hand, is optimized for the parallel execution of tasks that have real-world timing constraints.
labVIEW
applications:
LabVIEW
is a flexible programming environment that can help you successfully build your
unique application, whether you’re taking simple measurements or prototyping
with FPGA technology.
Data Acquisition
Traffic
control:
Wheelchair
powered by labview:
Robotic
Voice command
Post#4
Ali Alshaqaq
Source:
http://www.ni.com
No comments:
Post a Comment