Professional Documents
Culture Documents
Ghergwwer Key
Ghergwwer Key
1. C)virtual instrument
3. B)project
4. C)while loop
6. D)waveform chart
7. C)indicator
8. C)microphone
10. D)development
12. 2
16.
`17.
Can reduce the space requirement in the block diagram
It can be called again and again and no need of writing the same code again and again
It gives modular approach
18.
Strip Chart: This mode has a scrolling display that is similar to a paper tape strip chart
recorder. This mode first plots values from left to right. From here, it continues to plot
new points at the rightmost point and shifts old values to the left.
Sweep Chart: This mode acts much like the scope chart, but the plot is not erased
when the plot hits the right border. Instead, a moving vertical line marks the beginning of
new data and moves across the display from left to right as it adds new data.
19.
20.
LabVIEW RT
LabVIEW RT has grown from a niche product to become a staple of automation.
LabVIEW RT on one of National Instruments’ many industrial computers
conveniently fills the gap between a Programmable Logic Controller (PLC) and
a PC.
The result is a whole new class of industrial controller called the Programmable
Automation Controller (PAC).
PACs fill a need for high-loop-rate, closed-loop control systems requiring
advanced analysis and integration with the corporate network.
And PACs do it for a reasonable cost.
Whether you’re programming a PAC or just need a reliable DAQ system in the lab,
LabVIEW RT has the hardware and software to fill most needs.
PART – C (1 x 10 = 10 marks)
PART –D
Virtual instrumentation as shown below uses highly productive software, modular I/O
and commercial platforms. National Instruments LabVIEW, a premier virtual
instrumentation graphical development environment, uses symbolic or graphical
representations to speed up development. The software symbolically represents
functions. Consolidating functions within rapidly deployed graphical blocks further
speeds up development.
Another virtual instrumentation component is modular I/O, designed to be rapidly
combined in any order or quantity to ensure that virtual instrumentation can both
monitor and control any development aspect. Using well-designed software drivers for
modular I/O, engineers and scientists quickly can access functions during concurrent
operation.
The third virtual instrumentation element using commercial platforms, often enhanced
with accurate synchronization, ensures that virtual instrumentation takes advantage of
the very latest computer capabilities and data transfer technologies. This element
delivers virtual instrumentation on a long-term technology base that scales with the high
investments made in processors, buses and more. In summary, as innovation mandates
use of software to accelerate a new concept and product development, it also requires
instrumentation to rapidly adapt to new functionality. Because virtual instrumentation
applies software, modular I/O and commercial platforms, it delivers instrumentation
capabilities uniquely qualified to keep pace with today’s concept and product
development.
22 b(i)
Text-based programming
● Syntax must be known to do Graphical programming
programming. ● Syntax is knowledge but is not required
● The execution of the program is from top for
to bottom. programming.
● To check for the error the program has ● The execution of program is from left to
to be right.
compiled or executed. ● Errors are indicated as we wire the
● Front panel design needs extra coding blocks.
or needs extra ● Front panel design is a part of
work. programming.
● Text-based programming is non ● Graphical programming is highly
interactive. interactive.
● This is text-based programming where ● The programming is Data Flow
the Programming.
programming is a conventional method. ● Logical Error finding in large programs is
● Logical Error finding is easy in large quiet
programs. complicated.
● Program flow is not visible. ● Data flow is visible.
● It is test-based programming. ● It is icon-based programming and wiring.
● Passing parameters to sub routine is ● Passing parameters to sub VI is easy.
difficult.
22 b (ii)
VI Traditional instruments
A virtual instrument (VI) is defined as an
A traditional instrument is designed to
industry-standard computer equipped with
collect data from an environment, or from
user friendly application software, cost-
a unit under test, and to display
effective hardware and driver software that
information to a user based on the
together perform the functions of collected data. Such an instrument may
traditional instruments. Simulated physical
employ a transducer to sense changes in
instruments are called virtual instruments
a physical parameter such as temperature
(VIs). or pressure, and to convert the sensed
information into electrical signals such as
voltage or frequency variations.
displays, knobs and switches of a a virtual instrument uses a personal
conventional, external box-based computer for all user interaction and
instrumentation products control.
23. a(i)
Front Panel Windows
When you open a new or existing VI, the front panel of the VI appears. The front panel
is the interactive user interface for the VI. It is named a front panel because it stimulates
the front panel of a physical instrument. Build the front panel with controls and indicators
Block Diagram Windows
The block diagrams accompany the program for the front panel. Front panel objects
appear as terminals on the block diagram and the components wired together. After the
front panel is built, codes are added using graphical representations of functions in the
block diagram to control the front panel objects. The block diagram contains the
graphical source code composed of nodes, terminals, and wires.
Icon/Connector Pane
To use a VI as a subVI, it must have an icon and a connector pane. Every VI displays
an icon in the upper-right corner of the front panel and block diagram windows. An icon
is a graphical representation of a VI. The icon can contain both text and images. To use
a VI as a subVI, you need to build a connector pane. The connector pane is a set of
terminals that correspond to the controls and indicators of that VI.
Front panel tool bar
Additional to these tool we have block diagram tool bar that includes following tools
23. b(i)
FOR LOOPS
A For Loop executes a subdiagram, a set number of times.
The For Loop is located on the Functions>>Programming>>Structures Palette. Select
the For Loop from the palette and use the cursor to drag a selection rectangle to create
a new For Loop or around the section of the block diagram you want to repeat. You also
can place a While Loop on the block diagram, right-click the border of the While Loop,
and select Replace with For Loop from the shortcut menu to change a While Loop to a
For Loop.
The value in the count terminal ‘N’ (an input terminal) indicates how many times to
repeat the sub diagram. Set the count explicitly by wiring a value from outside the loop
to the left or top side of the count terminal, or set the count implicitly with auto-indexing.
The iteration terminal ‘i’ (an output terminal) contains the number of completed
iterations. The iteration count always starts at zero. During the first iteration, the iteration
terminal returns 0.
WHILE LOOPS
A While Loop executes a subdiagram until a condition is met. The While Loop is similar
to a Do Loop or a Repeat-Until Loop in text-based programming languages.
The Conditional Terminal is used to control the execution of the loop, whereas the
Iteration Terminal is used to know the number of completed iterations.
23. b(ii)
SEQUENCE STRUCTURES
A sequence structure contains one or more subdiagrams, or frames, that execute in
sequential order. Within each frame of a sequence structure, as in the rest of the block
diagram, data dependency determines the execution order of nodes. Sequence
structures are not used commonly in LabVIEW.
Use the sequence structures to control the execution order when natural data
dependency does not exist and flow-through parameters are not available.
Flat Sequence Structure
The Flat Sequence structure, shown as follows, displays all the frames at once and
executes the frames from left to right and when all data values wired to a frame are
available, until the last frame executes.
Student can use his own example
24. a(i)
ARRAYS
A group of homogeneous elements of a specific data type is known as an array, one of
the simplest data structures. Arrays hold a sequence of data elements, usually of the
same size and same data type placed in contiguous memory locations that can be
individually referenced. Hence arrays are essentially a way to store many values under
the same name. Individual elements are accessed by their position in the array. The
position is given by an index, which is also called a subscript. The index usually uses a
consecutive range of integers. Some arrays are multi-dimensional, but generally,
one- and two-dimensional arrays are the most common.
CLUSTERS
Clusters group data elements of mixed types. An example of a cluster is the LabVIEW
error cluster, which combines a Boolean value, a numeric value and a string. A cluster
is similar to a record or a struct in text-based programming languages.
Bundling several data elements into clusters eliminates wire clutter on the block
diagram. It also reduces the number of connector pane terminals that subVIs need by
passing several values to one terminal.
ASSEMBLING CLUSTERS
The Bundle function assembles a cluster from individual elements as shown in Figure
You also can use this function to change the values of individual elements in an existing
cluster without having to specify new values for all elements. To do so, wire the cluster
you want to change to the middle cluster terminal of this function. When you wire a
cluster to this function, the function resizes automatically to display inputs for each
element in the cluster.
DISASSEMBLING CLUSTERS
The Unbundle function splits a cluster into each of its individual elements (not
resizable). When you wire a cluster to this function, the function resizes automatically to
display outputs for each element in the cluster you wired as shown in following Figure.
The connector pane displays the default data types for this polymorphic function.
Unbundling elements from clusters accesses and arranges all elements in a cluster in
their cluster element order. After you unbundle elements from clusters, you can wire
each element to VIs, functions and indicators.
The Unbundle By Name function returns the cluster elements whose names you
specify. You do not have to keep track of the order of the elements within the cluster.
This function does not require the number of elements to match the number in the
cluster. After you wire a cluster to this function, you can select an individual element
from the function.(resizable)
24. a(ii)
25. b(i)
DATA acquisition system consists of ANALOG INPUTS to acquire the analog signals
from the plant/process. And digital input module to acquire the digital signals.
ANALOG INPUTS
Analog input is the process of measuring an analog signal and transferring the
measurement to a computer for analysis, display or storage. An analog signal is a signal
that varies continuously. Analog input is most commonly used to measure voltage or
current.
Analog-to-Digital Conversion
Acquiring an analog signal with a computer requires a process known as analog-to-
digital conversion which takes an electrical signal and translates it into digital data so
that a computer can process it. Analog-to-digital converters (ADCs) are circuit
components that convert a voltage level into a series of ones and zeroes.
COUNTERS
A counter is a digital timing device. Counters are used for event counting, frequency
measurement, period measurement, position measurement and pulse generation. Pulse
generation counter/timer circuitry is useful for many applications, including counting the
occurrences of a digital event, digital pulse timing, and generating square waves and
pulses.
DIGITAL I/O (DIO)
DIO interfaces are often used on PC DAQ systems to control processes, generate
patterns for testing and communicate with peripheral equipment. In each case, the
important parameters include the number of digital lines available, the rate at which you
can accept and source digital data on these lines and the drive capability of the lines.