Professional Documents
Culture Documents
MI LAB Manual Aug 2023
MI LAB Manual Aug 2023
LABORATORY MANUAL
Student Name
Register Number
Section / Roll no.
July 2023
Measurement & Instrumentation Lab
TABLE OF CONTENTS
CO No Course Outcome
CO 1 Build Virtual instrument simulations by exploring National Instruments LabVlEW software
CO 3 Analyze a three-OPAMP Instrumentation amplifier and analog filter for given specifications.
CO 4 Develop digital instruments using LabVlEW and applications of NI Data Acquisition platform.
CO 5 Investigate a complex problem by developing a capstone mini project using laboratory skills
making use of technical literature.
1. All wiring connections should be firm and tight, loose connections and joints between cables
should be avoided.
2. DO NOT turn ON the power supply to the instruments unless approved by the faculty in-
charge.
3. If any issues with the circuit is observed, do not touch/stay away from the circuit, call the lab
in-charge immediately and inform.
1.1 Introduction
LabVIEW (Laboratory Virtual Instrument Engineering Workbench), a system design software
developed by National Instruments, used by engineers and scientists for Data analysis, Visualization
and Real-Time monitoring & control of engineered systems. Its comprehensive system design
environment, unique graphical programming language, built-in engineering-specific libraries of
software functions and hardware interfaces provide tools needed to create, simulate and deploy
complex measurement and control systems through unparalleled hardware integration.
Acquiring Data and Processing Signals, Instrument control, Embedded Monitoring and Control are
few of the tasks that can be achieved easily through LabVIEW.
To invoke LabVIEW, either double click the icon on Desktop or search for “National
Instruments LabVIEW 2010” in start button of windows. The getting started window shown in Fig
1.1, is displayed when LabVIEW is launched. New projects and VI’s can be created, previously
created project, VI’s can be opened, find recently opened LabVIEW files, find examples and LabVIEW
help.
An user interface, or Front Panel is built with controls and indicators as shown in Fig 1.3. Controls
are knobs, push buttons, dials etc.. Indicators are graphs, LEDs, and other displays. When controls
and indicators are placed on the Front Panel, a corresponding graphical input block is created
automatically in the Block Diagram. The procedure for creating the VI is as follows:
• Select File>>Open Project, the Project Explorer window is displayed on the screen.
• Select File>>New VI. An empty Front Panel and Block Diagram are displayed on the screen.
Also the VI is created and displayed under the Project Name in the Project Explorer.
• Select File>>Save All to save the project and all the VI’s
In the Block Diagram, the code is written using a high-level, dataflow graphical programming
language (called ‘G Programming’ or ‘G Code’) by interconnecting graphical blocks that compiles
into machine code.
An example for front panel & block diagram is shown in Fig 1.4
4. Numeric Indicators: Numeric Indicator, Progress Bar, Graduated Bar, Meter, Gauge, Tank
and Thermometer.
5. LED’s: Square and Round LED’s.
6. Text Indicators: String Indicator, Table and File Path Indicator.
7. Graph Indicators: Chart, Graph and XY Graph.
Similarly, a Text indicator or an LED on the front panel would appear as an icon with a
input port. The ouput of the G-Code is written to the text indicator, LED, meter, graph
etc.
To write a G Code, wire up the terminals on the block diagram based on the control logic using the
wiring tool. A typical G code block diagram is as shown in Fig 1.4 b and its corresponding front panel
is shown in Fig 1.4a.
Note: Although the Abort Execution button looks like a stop button, the Abort Execution button
does not always properly close the VI. National Instruments recommends stopping the VIs using the
STOP button on the front panel. Use the Abort Execution button only when errors prevent
terminating the application using the STOP button.
Example 1:
1. Display the slope of the line given it`s co-ordinates (x1, y1) and (x2, y2). Given that
𝑦2 − 𝑦1
𝑠𝑙𝑜𝑝𝑒, 𝑚=
𝑥2 − 𝑥1
Sample Solution:
e. Click on Numeric Control and place the icon on front panel. This Numeric control acts as a
controlled input. As four numeric inputs are required in this example, place four inputs using
the numeric control on the front panel. Observe the changes in block diagram which is as shown
in Fig 1.7.
f. The output of the slope calculation has to be displayed on the Front Panel. To do this, on the
front panel right click; in the control palette select Numeric Indicator from Modern>> Numeric.
The front panel and the block diagram is as shown in Fig 1.8.
g. The labels of control and the indicators can be suitably renamed by double clicking the label and
renaming with suitable names.
Fig 1.8: Numeric Controls& Indicator on Front Panel & Block Diagram
h. To calculate the slope of the line, operators like subtract and divide are to be included in the
block diagram. Right click in block diagram. In the Function Palette, move the cursor over
Mathematics>>Numeric and place two Subtract and 1 Divide blocks in the block diagram. The
respective block diagram is as shown in Fig 1.9.
i. To connect the blocks, move the cursor (mouse pointer) over the Numeric Control in the block
diagram till the cursor changes its shape to a wiring spool as shown. Click and move the
cursor to the node of the other connecting block. The wired network is as shown in Fig 1.10.
j. Enter the coordinates for the line in the numeric controls on the front panel. Click Run button
to run the VI. Note the value displayed in the Numeric Indicator in the Front Panel.
FOR loops:
A FOR loop executes a sub diagram for a set number of times. A FOR loop in LabVIEW is as shown
in Fig 1.11.
The value in the count terminal (an input terminal ), indicates the no. of times to repeat the sub
diagram. It is explicitly set by wiring a value from outside the loop to the left or top side of the count
terminal, or the count is set implicitly with auto-indexing. If the count is 0 or a negative number, the
loop does not execute and the outputs contain the default data for that data type.
The iteration terminal (an output terminal ), contains the number of completed iterations. The
iteration count always starts at zero.
Example 2:
Develop suitable VI to plot a sine wave using elementary math function sine.
Sample Solution:
a. Invoke LabVIEW. In the block diagram window right click. Move the cursor over
Mathematics>>Elementary & special functions>>Trigonometric function>> sin. This is as
shown in Fig 1.12.
b. The input to the elementary SIN block is in radians. Hence the input angle needs to be converted
to radians. To do so, develop suitable logic in the block diagram using the pi, numeric constant
and Divide block available in Mathematics>>Numeric.
c. To generate a sine wave, this loop has to be executed continuously, for which while loop can be
used.
d. To use while loop, right click in block diagram, move the cursor over
Programming>>Structures>>while loop. The corresponding selection is as shown in Fig 1.13.
After selection drag over the available blocks in block diagram that are to be enclosed in the
loop.
e. The while loop has to be specified with one input i.e. the condition to stop execution of the loop.
This is specified by a red button located inside the while loop near the bottom right corner.
f. Place chart on the front panel and wire the output of the SIN function to it. The completed VI is
as shown in Fig 1.14.
g. Run the VI and observe the sine wave on the front panel. The output is as shown in Fig 1.15.
Week 1 Exercises:
1. Create a VI to convert the given temperature in degree Celsius to degree Fahrenheit [Given: (°C
x 1.8) + 32 = °F]
2 Create a VI to convert the given time in seconds to a combination of hours, minutes and seconds.
(Hint: Use the ‘Quotient & Remainder’ block from the Programming>>Numeric).
3 Develop a VI to generate half wave rectified sine wave.
The terminal on the right side of the loop contains an up arrow and stores data on the completion
of an iteration. LabVIEW transfers the data connected to the right side of the register to the next
iteration. After the loop executes, the terminal on the right side of the loop returns the last value
stored in the shift register.
Fig 2.1(a) Shift Registers in FOR Loop Fig 2.1(b) Shift Registers in WHILE Loop
A shift register transfers any data type and automatically changes to the data type of the first object
wired to the shift register. The data wired to the terminals of each shift register must be of the same
type.
Initializing a shift register resets the value the shift register passes to the first iteration of the loop
when the VI runs. To initialize a shift register, wire a control or constant to the shift register terminal
on the left side of the loop, as shown in Fig.2.2
More than one shift register can be added to a loop. If the loop involves multiple operations that
use previous iteration values, then multiple shift registers can be used to store the data values from
those different processes in the structure, as shown in the Fig.2.3.
Stacked shift registers can occur only on the left side of the loop because the right terminal transfers
the data generated only from the current iteration to the next iteration, as shown in the Fig.2.4.
Example 1
Create a VI to find the sum of first five natural numbers using FOR loop and shift registers.
Sample solution:
a) Open a new VI and place a Numeric Indicator in the front panel. In the block diagram place
ADD and Increment block from Programming>>Numeric.
b) To use a FOR loop, right click on block diagram >Programming>>Structures >>For loop as
shown in Fig 2.5.
c) A cursor appears on the block diagram. Click and drag the cursor over the blocks that are to
be included in the FOR loop. The FOR loop thus created is as shown in Fig2.6.
d) Create a constant and wire it to loop count terminal . Assign a value 5 to it.
e) To create a shift register place cursor on the left vertical border of for loop and select Add
shift register from the right click menu as shown in Fig 2.7.
f) A down arrow and an up arrow appears on the sides of the FOR loop indicating the creation
of one shift register which is as shown in Fig.2.8.
g) Create a constant of initial value zero and connect it to the left shift register indicating that
the initial value of the iteration is zero. Also wire the blocks as shown in Fig.2.9.
Example 2:
Create a subVI to determine the slope of the given whose co-ordinates are (X1, Y1) and (X2, Y2).
STEPS:
a. Create the front panel and block diagram for the VI by repeating the steps mentioned in
example 1.
b. Right hand top corner of every front panel has an icon as shown in Fig 2.10. The VI will be
represented by this icon whenever this VI is used as a subVI.
Icon
Fig 2.10 Front panel with the showing the connector pane
c. To use this VI as subVI, the inputs and the outputs of this VI have to be made accessible. In
order to do so, map the inputs and the outputs to a connector pane. To access the connector
pane, right click on the icon and select Show Connector. Select suitable connector block so
as to match with the number of inputs and outputs. This can be done by right clicking the
connector icon and moving the cursor over Patterns. This is as shown in Fig 2.10. The inputs
have to be mapped on the left half of the connector block and the outputs to the right half.
d. Move the cursor over the connector block. The cursor changes to wiring spool. Click on the
first terminal of the connector block and then click on the numeric indicator which is to be
mapped. After mapping the change in color of the connector block terminal can be
observed. This is as shown in Fig 2.11
Change in color
Week 2 Exercises:
1. Develop a VI to generate Fibonacci series whose length defined by the user. (Ex: if length is 7,
series is: 0 1 1 2 3 5 8)
2. Create a VI to find the factorial of the given using while loop and shift registers.
3. Create a VI to find the nCr and nPr of a given number using FOR Loop, given the value of n and r.
(use Sub VI from exercise 2 - factorial)
A case structure executes one sub-diagram depending on the input value passed to it and is similar
to if… then… else statement in text-based programming language. A case structure has generally
two or more sub-diagrams (or cases). Only one case is executed by the structure depending upon
the input value.
A typical case structure in LabVIEW is as shown in Fig 3.1.
For the CASE structure shown in Fig 3.1, the TRUE or FALSE case is executed based on the Boolean
input.
Example 1:
Create a VI to monitor the temperature condition using the Case Structure. The VI should display
‘High’ if the input temperature exceeds 30 Degrees and ‘Low’ if the temperature is below 30.
Sample Solution:
a) Open a new VI and place a KNOB on the front panel and set its lower and higher limits as 0 and
50 and also place a TEXT INDICATOR to display the temperature condition.
b) On the Block Diagram, Right Click and select Case structure from Programming>> Structures>>
Case Structure as shown in Fig 3.2.
Exercise:
2. Create a VI to develop a simple calculator to perform basic arithmetic operations (add, subtract,
multiply, square, square root, divide) and display result at same indicator for any two user input
values. Display error pop up message if divided by zero
Problem statement for mini project should be in line with the following statement:
“Design system level solutions or processes for engineering problems that meet the specified needs
with appropriate consideration for public health and safety, and/or cultural, societal, and/or
environmental considerations with an understanding of the limitations.”
EXPRESS VI’s are interactive VI’s with configurable dialogue page. LabVIEW uses colored icons to
distinguish between EXPRESS VIs, VIs and functions on the block diagram. By default, icons for
EXPRESS VIs appear on the block diagram as expandable nodes with icons surrounded by a blue
field whereas icons for VIs have white background and icons for functions have pale yellow
backgrounds.
Example 1
Generate a sine wave of 50 Hz and 230 V (RMS) using EXPRESS VI.
Sample solution:
a) Open a new VI. Right click on the block diagram, scroll the cursor over
Express>>Input>>Simulate signal which is as shown in Fig.4.1
b) On selecting Simulate signal, a Configure Simulate Signal window is displayed on the screen
which is as shown in Fig.4.2.
e) Place a graph indicator on the front panel and wire the same to the Sine port of the simulate
signal block. This is as shown in Fig 4.4
f) Run the VI and observe the output on graph indicator as shown in Fig 4.5.
g) Include WHILE loop and observe the difference.
Fig 4.5 Front Panel and Block Diagram with While loop
Example 2:
Generate a Sine wave of 325 V Amplitude, 50 Hz and determine the RMS value, Peak to peak value,
Maximum Peak and Minimum Peak value.
Sample Solution:
a) Create a New VI and Place Simulate Signal block in the Block Diagram (Refer Example 5) and
configure it to generate a Sine signal of 50 Hz with amplitude of 325.
b) Right click in the block diagram and move cursor over Express >> Signal Analysis and select
Amplitude &Level Measurements as shown in Fig 4.6.
c) The selection of Amplitude & Measurement block opens a configure Amplitude and Level
Measurements dialog box as shown in Fig 4.7.
f) Place three Numeric Indicators and one Graph Indicator on the Front Panel and wire them as
shown in the Fig 4.9
Example 3:
Generate a sine wave and store the output in a TDMS file with time stamp.
Sample Solution:
a) Create a New VI and Place Simulate Signal block in the Block Diagram (Refer Example 5) and
configure it to generate a Sine signal of 60z with amplitude of 200.
b) Right Click on Block Diagram and move the cursor over Express>> Output>> Write to
Measurement File. This is as shown in Fig 4.11.
c) Click and select Write Meas File icon and place the Express VI on the block diagram. A ‘Configure
Write to Measurement File’ dialog box opens up as shown in Fig 4.12.
i) The measurement data stored has three components: (1) Column 1 – With Date and Time of
Signal Generation (2) Column 2 – Time elapsed after starting the simulation (3) Column 3- value
of the signal.
Exercise
1. Create a VI to develop a function generator. (Hint: Use Simulate signal block and Case
structure.)
2. Determine the THD (Total Harmonic Distortion), RMS value, Peak to Peak value for the
output of a Half wave rectifier connected to AC source of 230 V, 50 Hz. Also, determine the
amplitudes of all the harmonic frequencies. (Hint: Use Distortion block from
Express>>Signal Analysis)
3. A sinusoidal signal of v(t)=200 Sin(314t) is applied to a load of 20±θ. Determine the active
power, reactive power and apparent power supplied to the load for different value of ‘θ’.
(Hint: Generate two sinusoidal signals, one for voltage and the other for current
corresponding to the load).
3. Open Arduino application, check COM port (tools→ port), browse and open the program
named LIFA_BASE
from the directory: C:\Program Files\National Instruments\LabVIEW 2015\vi.lib\LabVIEW
Interface for Arduino\Firmware\LIFA_Base
4. Verify the program, upload the LIFA_BASE program to Arduino board, close Arduino
software
5. Open LabVIEW > blank VI > functions pallet > Arduino, to start programming as shown in
Fig 5.3
Example 1: Develop a LabVIEW VI to acquire voltage signals from a battery pack connected via
Arduino microcontroller board.
Components:
4 Battery pack DC 1
5 Connecting wires - -
Procedure:
4. Run the LabVIEW VI to acquire the voltage signals and press STOP in front panel to terminate
loop of program. Sample solution is shown in Fig 5.6
Results: Compare three measurements as per LabVIEW and Verify the same using DMM.
Inference:
Example 2: Develop a LabVIEW VI to identify bright/low levels of light using a light dependent
resistor as sensor and Arduino to interface with LabVIEW. Also, If intensity is less than 50% turn
ON an LED and if otherwise turn OFF the LED
Procedure:
Inference:
Exercise:
1. Develop a LabVIEW VI to measure the room temperature using LM35 temperature sensor
connected via Arduino microcontroller board.
2. Develop a LabVIEW VI to identify three levels of light using a light dependent resistor as
sensor and Arduino to interface with LabVIEW. Also, If intensity is less than 25% turn ON
two LEDs, and if the intensity is less than 50% turn ON only one LED of the two LEDs, and if
otherwise turn OFF both LEDs.
3. Develop a VI to verify the correctness of a 2-number’s math operation and indicate correct
answer with turning ON LED1 and OFF LED2 and indicate wrong answer with turning OFF
LED1 and ON LED2 connected via Arduino to LabVIEW. (user must enter 2 numbers and
select a math operation (add, subtract, multiply, divide), and enter the expected answer in
front panel)
Texas Instruments’ ASLKv2010 starter kit (refer Fig 6.1) comes with 4 general purpose Op-amps
(TL082) & 3 wide bandwidth precision analog multipliers (MPY634) from Texas Instruments. There
is also a provision to include a 12 bit parallel-input multiplying DAC (DAC7821). A bread board is
provided for general purpose prototyping and can be used to carry out mini projects.
±12𝑉
The kit has a provision to connect ±12𝑉 DC power supplies. The kit comes with necessary short
and long connectors, as well as connectors for power supplies. The power supply connections are
made on ASLKv2010 Starter Kit are shown in Fig 2.1. The ±12𝑉 supplies are connected internally
to all the ICs that require ±12𝑉 supplies, namely, the Op-amps and the multipliers. Refer to
Appendix A of Analog system lab manual for the details of the integrated circuits that are included
in ASLKv2010 Starter kit. Refer to Appendix D for additional details of ASLKv2010 Starter Kit.
Precautions: If the experiment requires only of the 2 op-amps in an IC, do not leave the inputs and
output of the unused op-amp open. Instead, place the unused op-amp in unity-gain mode and
ground the input.
Design specifications:
Components required:
2 Signal generator
5 Connecting wires
Design:
𝐴𝑑
𝐶𝑀𝑅𝑅 = 20𝑙𝑜𝑔
𝐴𝑐
Procedure:
[For pin diagram of op-amp IC TL082, refer page 88 and for connection diagrams, refer page 107 –
‘Appendix D’ of Analog System Lab manual. Use 3 Op-amps to realize the above instrumentation
amplifier and provide ±12𝑉 DC supply to the board].
1. Using a function generator, apply a sine wave of 1 V (peak-to-peak) between the input
terminals 𝑉1 and 𝑉2.
2. Measure the output voltage (peak-to-peak), 𝑉0 using the DSO.
3. Compute the differential-mode voltage gain and determine CMRR for the instrumentation
amplifier.
To determine the common-mode gain (AC):
1. Interconnect the input terminals, 𝑉1 and 𝑉2. Using a dual-power supply, apply a common
voltage of +5 V DC between V1 (or V2) and ground terminals.
2. Measure the output voltage, 𝑉0 using the DMM.
3. The common-mode voltage gain is the ratio of Vo and Vin (= +5 V).
Results:
Inferences:
Design specifications:
Filter type : Active Low Pass Cut-off freq. : 10 kHz
Response type : Butterworth Gain : Unity
Order :2
Components Required:
Sl.
Apparatus Type Quantity
No.
1 ASLKv2010 starter Kit
2 Signal generator
5 Connecting wires
A Sallen-Key Circuit as shown in Fig 2.3 is used to implement the 2𝑛𝑑 order Butterworth Low pass
filter. For ease of design, we assume 𝑅1 = 𝑅2 = 𝑅. The gain of this stage is unity.
The circuit connection diagram is as shown in Fig 7.1. The circuit needs to be developed using TI
ASLKv starter kit. Verify the correctness of the circuit and then proceed with the experimentation
procedure.
⍵20
𝐻(𝑠) = ⍵0
(1)
(𝑠 2 + 𝑠 + ⍵20 )
𝑄
1
𝐻(𝑠) = (2)
1
(𝑠 2 + 𝑄 𝑠 + 1)
Equation (1) shows the transfer function of a second order filter circuit where Q is the quality factor
(0.7071 for 2nd order) and ⍵0 is the cut-off frequency in radians/second. Equation (2) shows the
transfer function in its normalized form.
The value of capacitor C1 and C2 can be determined by using the following equations:
1 (3)
𝐶1 =
2𝑅𝑄⍵0
2𝑄 (4)
𝐶2 =
𝑅⍵0
We have cut-off frequency, 𝑓0 = 10𝐾ℎ𝑧 , let 𝐶1 = 0.1µ𝐹 now using Eqn 3 we get
1
𝑅1 = 𝑅2 = 𝑅 = = Ω
2𝑄𝐶1 ⍵0
2𝑄
𝐶2 = = µ𝐹
𝑅⍵0
Select 𝑪𝟐 = 𝟎. 𝟏µ𝑭 standard value.
Procedure:
Results/Observation:
2nd Order Butterworth filter
Input voltage, Vi (P-P) = V
… … …
Inference:
Reference:
8.2 NI USB-6008/6001
The NI USB-6008/6001 is a multifunction I/O device that provides connection to eight single-ended
analog input (AI) channels, two analog output (AO) channels, 12 digital input/output (DIO)
channels, and a 32-bit counter with a full-speed USB interface.
8.3 Follow the following steps to configure the device using NI-MAX (Measurement and
Automation Explorer)
1 Invoke MAX by clicking the following link START>>All Programs >>National Instruments>>
Measurement and Automation Explorer (NI-MAX)
2 The MAX loads and the following screen shown in Fig 8.1 is displayed. On the left hand side of
MAX, an explorer displays the list of physical and virtual devices connected to the host
computer or PC. Help menus are displayed on the right hand side of MAX.
3 On the explorer expand ‘Devices and Interfaces’. A list of devices connected to the PC (host)
are displayed. Identify if ‘NI USB-6008/6001’ is listed. This is as shown in Fig 8.2. If the device is
not listed then press <F5> to refresh the view.
4 Right click on the device ‘NI USB-6008/6001’ and Select ‘Test Panels’ on RH side of the explorer.
This is as shown in Fig 8.2.
Fig 8.2 Selection of active device and then the ‘Test Panels’
5 Selection of ‘Test Panels’ displays the following dialog box shown in Fig 8.3.
Samples to Read.
Max Input 10
Maximum value of transducer output.
Limit
6 Click on ‘START’ to test the NI USB-6008/6001. The test result displayed is as shown in Fig 8.4.
7 Click on ‘STOP’ to terminate the test on channel AI0. And close the Dialog Box.
8 Right click on the device and select ‘Reset Device’ to reset the device to its default state. This is as shown
in Fig 8.5. A Confirmation dialog box appears indicating the completion of device reset. Click ‘OK’ and
Continue. The device NI USB-6008/6001 is now ready to be used in LabVIEWTM. Close MAX after test
and reset are complete.
1 Using MAX, detect the device NI-USB 6001. Refer to ‘MAX and NI USB-6008/6001 Setup’ for connection
of NI USB-6008/6001 and its testing.
2 Invoke LabVIEWTM and create a new project. Also create a new VI and rename it as ‘DC Voltmeter’.
3 On the block diagram, right click and select Express>>Input>> DAQ Assistant as shown in Fig 8.6.
4 Place the ‘DAQ Assistant’ express VI on the Block Diagram. A configuration popup box appears as shown
in Fig 8.7. The left-hand side of the configuration dialog displays help on the DAQ assistant menus. The
right side of the configuration box provides has two selections,
4.1 Acquire Signals – Provides a channel to acquire data from analog inputs like Voltage, current,
temperature etc., Digital inputs like line and port and counters.
4.2 Generate Signals – Provides access to write or output an analog voltage or current signal to
an actuator and digital outputs to a counter etc.
5 Expand ‘Acquire Signals’ and Analog Input. Select ‘Voltage Input’. This is as shown in Fig 8.8.
7 Locate the device NI USB-6008/6001 in the tab ‘Physical’. And expand the selection. The channels
available on the NI USB-6008/6001 are displayed in a list. The list contains analog channels from AI0
through AI7. Select the channel to which the analog input (i.e the output of battery pack) is connected,
Eg. AI0. The selection is as shown in Fig 8.10.
8 Click on ‘FINISH’. A popup ‘DAQ Assistant’ is displayed on the screen as shown in Fig 8.11.
9 The ‘DAQ Assistant’ has two tabs, ‘Express Task’ and ‘Connection Diagram’. Select the “Express Task’
tab and check the settings in the ‘Configuration’ tab as per the table below.
Tag Name Tag Value Remarks
Channel Settings
Timing Settings
10 To log the acquired data in a TDMS file, select the Logging tab and tick the ‘Enable TDMS
logging’ check box and select the path for storing the TDMS file as shown in Fig 8.12.
11 Select the ‘Connection Diagram’ tab to see the connections for analog voltage input (AI0). The
connection diagram for channel AI0 is as shown in Fig 8.13..
12 Click ‘OK’ to complete the ‘DAQ Assistant’ configuration. The ‘DAQ Assistant’ appears on the
block diagram as shown in Fig 8.14. The values of input voltage are available in the data.
13 Right click on the data port of DAQ Assistant and select ‘Create Numeric Indicator. Rename the
indicator Label as ‘VOLTAGE’. Also place a while loop with a STOP button to complete the DC
Voltmeter. This is as shown in Fig 8.15.
14 Connect the battery pack to terminal 2 & 3 of NI USB-6008/6001. Vary the potentiometer on
the battery pack and observe the voltage reading on the screen. Verify the same with a Digital
Voltmeter.
Inference:
Connection Diagram:
Procedure:
1. Connect and configure NI USB-6001 to the PC. (Refer to ‘MAX and NI USB-6001’ setup and
configuration of ‘DAQ Assistant’).
2. Connect the sensor pins to appropriate analog input/output channels of NI DAQ as shown in
Fig 8.16.
3. Configure LabVIEW to generate require supply voltage as shown in Fig. 8.17
4. Develop VI to display the room temperature from the acquired signal from the LM35 sensor.
Features:
1. To observe the load voltage and current of a single-phase AC controller supplying lamp
load using LabVIEWTM
2. To compare the measurements of Active power, Reactive Power, Apparent power and
Power factor for a. Incandescent bulb
Connection Diagram:
1. Connect and configure NI USB-6001 to the PC. (Refer to ‘MAX and NI USB-6001’ setup and
configuration of ‘DAQ Assistant’).
2. Connect single lamp load to the power measurement kit.
3. Connect the current and voltage sensor output to the analog input channels of NI DAQ.
4. Configure LabVIEW to select multiple channel data acquisition using NI DAQ assistant, and
compute appropriate multiplication factors to the sensors
5. Develop VI to determine Active power, Reactive power, Apparent power and power factor.
(Hint: To average of instantaneous values of period use of Amplitude and level measurements > cycle Average)
Theoretical calculations:
Active power
Power factor =
Apparent power
A Sample expected front panel for a 200W Incandescent bulb load is shown in Fig 8.19
1. To observe the load voltage of a single-phase AC controller supplying lamp load using
LabVIEWTM and to determine the delay angle for various lamp brightness.
2. To observe the harmonic spectra and to calculate the THD (Total Harmonic Distortion) for
various lamp brightness.
3. To analyze the variation in THD and dominant harmonics for various delay angles.
Connection Diagram:
Procedure:
1. Connect and configure NI USB-6008/6001 to the PC. (Refer to ‘MAX and NI USB-6008/6001’
setup and configuration of ‘DAQ Assistant’).
2. Write a suitable G Code to plot the load voltage, harmonic spectra and to display the load
voltage, THD and dominant harmonic components.
3. Connect the ‘AI0+‘and ‘AI0-’ terminals of NI USB-6008/6001 to the ‘V+’ and ‘V-‘ terminals of
the ‘AC Voltage controller Module’. These terminals are the output of the ‘LEM Voltage sensor’
connected across the load.
4. Connect the Lamp to the module (The lamp acts as a load). And module to the single phase
supply.
5. Switch ON the module, vary the dimmer and observe the change in the brightness of the lamp.
6. Observe the load voltage waveform and Load Voltage-Frequency spectra for different
brightness.
7. Measure the delay angle, THD and dominant harmonics when the dimmer is varied from low
to maximum brightness in definite steps.
Theoretical calculations:
𝛼 Sin 2α
Vload RMS = Vsupply RMS (√1 − + )
𝜋 2π
Note: Students are advised to observe the effect of delay angle on the THD and dominant
harmonics.
Results:
Inferences:
Mini Project Demonstration includes the PPT presentation, live demonstration, and report
submission.
1. Report
The contents in the Report of Mini project limited to a maximum of 3 sheets are
1. Title
2. Team name and Registration numbers
3. Objectives
4. Literature survey
5. Design Solution
a. Working Principle (Explain using block-diagram representation)
b. Circuit Diagram with explanation
c. Programming –flowchart
d. Results
i. Simulation - snapshots
ii. Hardware prototype - snapshots
e. Conclusion
6. Limitations of the project and scope for improvements.
7. Identify and explain the impact of the project on consideration for public health and safety,
and/or cultural, societal, and/or environment.
8. Comment on the ability to function effectively as a team member for the project (each student
comments).
9. Bill of Materials
2. Project demonstration video → include all members demonstrating and explaining the project work
(maximum 5 minutes)
__________________________________________________________________________________
Additional Exercises
1. Realization of a Single/ Dual Trace Oscilloscope using LabVIEW with options of signals displayed both in
time & frequency domain.
2. Realization of a single-phase digital energy meter.
3. Realization of a scientific Calculator using LabVIEW.
4. Realization of frequency determining meter based on Lissajous patterns.
5. Develop a LabVIEW VI to change the speed of a DC motor connected via Arduino (Use a slider/knob in
front panel)
_____________________*****______________________