You are on page 1of 35

PEX P NO: DATE :

BASIC OPERATIONS CHECK CONTROL & INDICATORS

AIM: . Build a VI by using national instruments Lab VIEW 8.5 software to realize and check control and indicators APPARATUS REQUIRED: Pentium processor Lab view 8.5 software Laser printer

PROCEDURE: 1) 2) 3) 4) 5) 6) 7) Open a blank VI Place a necessary controls and indicators needed in the front panel Form the control Palette The components needed by Add, Multiply and drag it form the control Palette Wire the components needed by add, multiply and drag it from the function. Customize the front panel by using labeling tool, coloring tool Save a VI Execute a VI by pressing run. Observe the output in the screen and verify it.

PREPARED BY SR/SM

Result: Thus the Basic operation of check control & Indication has been verified

FLOWCHART Open VI

Place a necessary control and indicator

Wire the components

Get the inputs

If err or

Check the program

SAVE VI

PREPARED BY SR/SM

EX P NO : DATE :

BASIC OPERATIONS TO ADD AND MULTIPLY MORE THAN TWO NUMERIC INPUTS

AIM: Build a VI by using national instruments lab view 8.5 software to realize the add, multiply more than two numeric inputs APPARATUS REQUIRED: Pentium processor Lab view 8.5 software Laser printer PROCEDURE: 1) Open a blank VI, Place a necessary control and indicator needed in the front panel from the control palette 2) The components needed like add, multiply are to be dragged it from the function Palette and to be placed in the block diagram. 3) Wire the components and indicator using wiring tool in the tool Palette. 4) Absorb the output in the screen and verify it 5) Run and save the VI

PREPARED BY SR/SM

Result: Thus the Basic operation of add, multiply more then two numeric inputs has been Verified FLOWCHART Open VI

Add three Numeric control

Add three Numeric Indicator

Include component Add & multiply operator in the block diagram

Run the program

NO

If erro r

YES

Check the program

PREPARED BY SR/SM

EX P NO : DATE :

BASIC OPERATIONS SAVE VI CONVERSION FROM CELSIUS TO FAHRENHEIT

AIM: Build a VI, by using national instruments, Lab VIEW 8.5 software to realize to convert Celsius into Fahrenheit APPARATUS REQUIRED: Pentium processor Lab view 8.5 software Laser printer PROCEDURE: 1) Open a blank VI, Place a necessary control and indicator needed in the front panel from the control palette 2) The components needed i.e. functions (for Celsius into Fahrenheit) are dragged it from the function Palette and to be placed in the block diagram. 3) Wire the components and indicator needed for execution. 4) Absorb the output in the screen and verify it 5) Save a VI 6) Execute a VI by pressing RUN button or RUN continuously

PREPARED BY SR/SM

Result: Thus the Basic operation of Conversion of Celsius to Fahrenheit was verified FLOWCHART

Open VI

Include necessary control in front panel

Include multiple operators in the block diagram

Add it to the numeric control

Include the numeric Indicator

NO

If erro r

Yes

PREPARED BY SR/SM

EX P NO: DATE :

BASIC OPERATIONS CONVERSION OF BINARY NUMBER TO DECIMAL NUMBER

SAVE VI

Check the program

AIM: Build a VI, by using national instruments, Lab VIEW 8.5 software to realize and to convert a Binary number to decimal number APPARATUS REQUIRED: Pentium processor, Lab view 8.5 processor, Laser printer PROCEDURE: 1) Open a blank VI, Place a necessary input, control, Indicator needed in the front panel from the control palette 2) The components needed i.e. functions (for Binary to decimal conversion) are to be placed in the block diagram. 3) Wire the components using wiring tool in the tools palette 4) Absorb the output in the screen and verify it 5) Execute a VI by pressing RUN button or RUN continuously 6) Save the VI.

PREPARED BY SR/SM

Result: Thus the Basic operation of Conversion of Binary number to decimal number has been verified FLOWCHART Open VI

Include necessary control in front panel

Place the Boolean to (0, 1) function is block diagram

Include the numeric control 8,4,2,1

Add the values with component numeric

Run the program

PREPARED BY SR/SM

EXP NO: DATE :

BASIC OPERATIONS ADD TWO BINARY NUMBERS AND TO FIND SUM AND CARRY

NO

If erro r

YES

SAVE VI

Check the program

AIM: Build a VI, by using national instruments, Lab VIEW 8.5 software to realize and to Add two Binary numbers and to find the sum and carry APPARATUS REQUIRED: Pentium processor, Lab view 8.5 processor, Laser printer PROCEDURE: 1) Open the blank VI, Place a necessary input, control, Indicator needed in the front panel from control palette 2) The components like add, AND, OR functions needed for execute a function is to be dragged it from the function palette and to be placed in the block diagram. 3) Absorb the output in the screen and verify it 4) Wire the components, control and Indicator using wiring tools in tools palette 5) Customize the front panel using labeling and coloring tool 6) Save a VI 7) Execute a VI and verity it

PREPARED BY SR/SM

Result: Thus the Basic operation of addition of two binary bits to find sum and carry has been verified.

FLOWCHART Open VI

Include the necessary control and indicator in front panel

Include the Boolean to (0,1) in black diagram

Include the numeric indicator

Run the program

If erro r

PREPARED BY SR/SM

EXP NO: DATE :


NO

BASIC OPERATIONS CREATING A VI AND TO BUILT A SUB VI YES

Check the program

SAVE VI

AIM: To Build a VI, by using national instruments, Lab VIEW 8.5 software to debugging the VI and to built a SUB VI APPARATUS REQUIRED: Laser printer, Lab view 8.5 processor, Pentium processor THEORY: After we built a VI then create its icon and connector pane. We can use this in another VI A VI with in another VI is called as SUB VI A SUB VI corresponds to a subroutine in a text based programming language Using SUB VI. It helps to manages, changes and debug

PROCEDURE: 1) Open the blank VI, and Place the necessary input, control, Indicator needed in the front panel PREPARED BY SR/SM

2) The components needed like add, multiply functions are to be dragged it from the function palette and to be placed in the block diagram. 3) Open a new VI and place the Saved VI in that then Run the program and absorb the output in the screen and verify it 4) Save the VI 5) Run the program and absorb the output.

Result: Thus the Creating a VI and to built a sub VI using Lab VIEW has been Verified

FLOWCHART Open VI

Include necessary control in front panel

Place the Boolean to (0, 1) function is block diagram

NO

If erro r

YES

SAVE VI

Check the program PREPARED BY SR/SM

EXP NO: DATE :

SIMPLE PROGRAMMING STUCTURE WHILE LOOP

Create the Icon

Create the connector

Assign terminal

SAVE VI

Insert VI in to top-level

AIM: To Create a VI, using Lab VIEW 8.5 for the application of while loop structure. APPARATUS REQUIRED: Laser printer, Lab view 8.5 processor, Pentium processor, THEORY: Similar to a do loop executes the program until the condition is met in the text based programming language, while loop executes a sub diagram until the conditional Terminal, and input terminal receives a specific code. When a conditional terminal is running it is true, the while loop executes its sub diagram until the conditional terminal condition is achieved. Input terminal receives a specific Boolean values when PREPARED BY SR/SM

a conditional terminal is running it is true, the while loop executes its sub diagram until the conditional terminal receives false value PROCEDURE: 1) Open the blank VI 2) Components needed like a numeric, Boolean control, indicators are to be dragged it from control palette. 3) The necessary functions like while loop, Boolean functions are to be dragged it from the function Palette and to be placed in Block diagram 4) Wire the components using wiring tools in tools palette 5) Place the while loop in block diagram by selecting it from (function >> structure ) 6) Select a random number from (function>> numeric) wire the diagram and executes the program Run the program and Save a VI

Result: Thus the VI using Lab view for the application of while loop has been verified FLOWCHART Open VI

Add two numeric control in front panel

Add numeric Indicator in front panel

Include case structure True = Add operator False = Subtract operator

PREPARED BY SR/SM

EXP NO : DATE :

SIMPLE PROGRAMMING STUCTURE WAVE FORM MEASUREMENT

Run the program

YES

If erro r

NO

Check the program

SAVE VI

AIM: To Create a VI, using Lab VIEW 8.5 for the application of waveform measurement using for loop structure. APPARATUS REQUIRED: Pentium processor Lab view 8.5 processor Laser printer THEORY: PREPARED BY SR/SM

In wave form measurement for loop is used. Loop executes a sub diagram at a set number of times value in the count terminal are represented by the Indicator N indicates how many times to repeat the sub diagram. PROCEDURE: 1) Open the blank VI, place a necessary components needed in front panel 2) Components like for loop, Boolean functions, some needed functions are to be dragged it from function palette and to be placed in the Block diagram. 3) Wire the components using wiring tools in tools palette 4) Select for loop from programming Structure for loop. Place two numeric controls, necessary component needed in block diagram (sub operator, numeric constant ) 5) On block diagram go to function, select sine from mathematics trigonometric 6) Connect all the Icon by using the wiring tool 7) Run the VI and save the VI

Result: Thus the VI using Lab view for the application of wave form measurement has been verified FLOWCHART Open VI

Place the waveform Graph in front panel

Select for loop in block diagram

PREPARED BY SR/SM

EXP NO: DATE :

SIMPLE PROGRAMMING STUCTURE CASE STRUCTURE Place numeric Constant SINE in block diagram

Run the program

YES

If erro r NO

Check the program

SAVE VI

AIM: To Create a VI, using Lab VIEW 8.5 for the application of case structure APPARATUS REQUIRED: Pentium processor Lab view 8.5 processor PREPARED BY SR/SM

Laser printer THEORY: Case structure has two or more sub diagrams only one sub diagram to execute at a time based on value of selector Each sub diagram must provide output value for each case structure PROCEDURE: 1) Open the blank VI, place a necessary components needed in front panel 2) Components like numeric functions, case structure and other functions are to be dragged it from function palette and to be placed in the Block diagram 3) Wire the components using the wiring tool in tools palette 4) Place case structure on block diagram programming => Structure case for true condition select addition operator on block diagram(programming numeric ) 5) For false operator, place subtract operator on block diagram (programming numeric ) 6) Connect the control, case structure, indicator by using wiring tool. 7) Run and save the VI.

Result: Thus the VI using Lab VIEW for the application of case structure has been verified

FLOWCHART Open VI

Add two numeric control in front panel

PREPARED BY SR/SM

EXP NO: DATE :

ARRAYS
Add numeric Indicator in front panel

Include case structure True = Add operator False = Subtract operator

Run the program

NO

If erro r

YES

SAVE VI

Check the program

AIM: To Create a VI, using Lab VIEW 8.5 for the application of Arrays APPARATUS REQUIRED: PREPARED BY SR/SM

Lab view 8.5 by National Instruments THEORY: A lab view arrays is a collection of data elements, all of the same type An arrays can have one or more dimensions up to 231 -1 element per dimension, An array data element can be of any type except another array data element can be of any type except another array, a chart or a graph

PROCEDURE: 1) Open a new VI 2) On the front panel, create a ware form chart , control =>wave form charts graph and a numeric control along with an array function structure array and a numeric indicator 3) On the block diagram create a for loop function structure for loop along with an array & a numeric indicator 4) Connect the element through wiring tool 5) Check the wiring and Run the program. If error exists, recheck the program else Save VI

Result: Thus the VI using Lab VIEW for the application of case structure has been verified

FLOWCHART Open VI

ADD control IN FRONT panel

PREPARED BY SR/SM

EXP NO: DATE :

CLUSTERS

Add Indicator to block diagram

Add for loop in block diagram

Run the program

NO If erro r SAVE VI

YES

Check the program

AIM: PREPARED BY SR/SM

To create a using Lab VIEW 8.5 for the application of cluster APPARATUS REQUIRED: Pentium processor Lab view 8.5 software Laser printer THEORY: Cluster can group data of different types A cluster contain different types of data types like numeric control, Boolean control, string control in a single unit A cluster may be thought of as a bundle of wires

PROCEDURE: 1) 2) 3) 4) 5) Open a Blank VI Create a cluster on the front panel Place the necessary component in the block diagram Connect the Icon by using the wiring tool Run the program and save the VI

Result: Thus the creation of a cluster using Lab VIEW software was executed and verified FLOWCHART Open VI PREPARED BY SR/SM

Add two control in front panel

Add necessary component in block diagram

Run the program

NO

If erro r

YES

SAVE VI

Check the program

PREPARED BY SR/SM

EX P NO: DATE :
AIM:

RC CIRCUIT MEASUREMENT

To create a VI for RC circuit measurement using NI Lab VIEW APPARATUS REQUIRED: Pentium processor Lab view 8.5 software Laser printer THEORY: An RC circuit consists of a voltage source connected in series with resistor and a capacitor Two switches in the circuit allows us to control us to control current in the circuit E = VC (t) R i (t) = 0 The voltage across resistor VR(t) is simply given by VR (t) = E- VC (t) = E (e+ / RC) Note that in both the current now follows simple potential equation L n [ i(t)/ I o] = -t / R c The frequency is given by F = 1/2Rc PROCEDURE: Result: Thus the program for RC circuit Measurement has been designed and output was verified Open a New VI On the front panel include controls and indicator On the block diagram, include arithmetic operation on RC circuit Measurement connect these elements through the wiring tool If error exist, check the program and save VI

PREPARED BY SR/SM

FLOWCHART Open VI

Add numeric control in front panel

Add multiply divide reciprocal 2on BD

Connect control & Indicator using wiring tool

Run the program

YES

If erro r

NO

Check the program

SAVE VI

PREPARED BY SR/SM

EXP NO: DATE :

OSCILLOSCOPE ATTRIBUTES

AIM: To create a VI program for oscilloscope attributes by using Lab VIEW 8.5 software APPARATUS REQUIRED: Pentium processor Lab view 8.5 software Laser printer THEORY: Oscilloscope is the device used to display the output Here the measurement of time, phase, amplitude, offset of the sine wave signals are measured by using oscilloscope Time, phase, offset and amplitude are called as attributes of the signal

PROCEDURE: 1) Open a new VI, Add for control on front panel Numeric >> control 2) Add wave from chart on the front panel 3) Include sine wave < function >>digital processing >> wave from generation >> Sine wave. An block diagram 4) Connect the icon by using wiring tool 5) Save a VI 6) RUN the program

PREPARED BY SR/SM

Result: Thus the VI program for oscilloscope attributes was created and the output was verified FLOWCHART Open VI

Add four numeric control in front panel

Add waveform char on front panel

Include sine wave in block diagram

Run the program

NO

If erro r

YES

Check the program

SAVE VI

PREPARED BY SR/SM

EXP NO: DATE :

OP AMP CIRCUIT AND ITS CHARACTERISTICS

AIM: To create a Lab VIEW for the application of op- amp circuit and for its characteristics APPARATUS REQUIRED: Pentium processor, Lab view 8.5 software, Laser printer THEORY: The frequencies response curve of op-amp circuits with resistive element is dominated by the frequency dependence of op-amp In this Lab, the capacitive and Inductive element are Introduced into inputs and feed back loop These element have their own frequency dependence and they will dominate the frequency response of gain curve

PROCEDURE: 1) Open a VI 2) On the front panel place numeric control & Create a cluster on the front panel 3) On the block diagram, place the addition, division, subtract operation Function >> Programming >> addition 4) Arrange the control and Indicator in proper manner 5) Connect the Indicator and control using wiring tool 6) After completing all the above procedure run the program 7) Save the VI

PREPARED BY SR/SM

Result: Thus the program for op-amp circuit and characteristic circuit has been designed and the Output was verified

FLOWCHART Open VI

Add control & Indicator in front panel

Add multiply divide in BD

Connect control & Indicator

Run the program

NO

If erro r

YES

Check the program

SAVE VI

PREPARED BY SR/SM

EXP NO: DATE :

CONVERSION OF VOLTAGE TO FREQUENCY

AIM: To convert the voltage value to frequency using NI Lab VIEW 8.5 APPARATUS REQUIRED: Pentium processor, Lab VIEW 8.5 software, Laser printer THEORY: When we assume the supply voltages of all op-amp circuit are +15V to -15V volts. Historically voltage to frequency converter was used to input stage for digital recorder. A slowly varying input for analog signal was converted into frequency then recorded on the conventional magnetic tape recorders. These provision analog recorders whose output was a digital frequency more recently. V- F converters are found in front end of expensive digital voltmeter and other low cost analog to digital circuits. The classic 555 timer chip is a form of voltage to frequency converters

PROCEDURE: 1) 2) 3) 4) 5) 6) Open a VI On the front panel place the necessary controls and Indicators. The numeric values of in Vin form. Then insert the power of knob plot a graph of the output frequency Versus I/P voltage in lat network. Very the frequency of the I/P signal Analyze What happens when the frequency is equal to Zero

PREPARED BY SR/SM

EXP NO: DATE :

Signal Generation Using NI-DAQmx, Frequency analysis

Result: Thus the program for op-amp circuit and characteristics has been designed and the Output was verified

AIM: Create a Lab VIEW program for interfacing the H/W and S/W with a help of DAQ CARD APPARATUS REQUIRED: NI Lab view 8.5 THEORY: HARDWARE

Building the switching circuit Generally system acquire sensor readings form a external trigger we will need a switch a ON NPN BJTC (transistor) set the circuit wiring on your NL ELVSI bread board as fig When the switch is closed the Transistor will enter in saturanum and it opens the collected There digital O/P become Zero

STEP 2: Connecting the switching circuit output to DAQ After building the switching circuit we have to connect I to data to work as a trigger

STEP 2: Connecting the switching CKT output to DAQ The voltage signal to T/C usually in m v It is formed by 3 op-amp shows in fig. The quad op-amp to store writing complexity. Vo / (V2 -V1) = (1+2RI/Rgain) R3/R2 PREPARED BY SR/SM

Vo = [(1+2RS/Rgain) R3/R2] (V2-V1) Vo = 300 (V2-V1) STEP 3: Building one Amplification circuit After building amp connect the two terminals of T/C to the V1&V2 Terminals Then connect the (Vo) Terminal of the 14 to Act 10 on ELVIS, connect the ground of the amplifier

STEP 4: Connecting T/C to Amplifier is than DAQ After building amp connect the two terminals of T/C to the V1&V2 Terminals Then connect the (Vo) Terminal of the 1A to Act 10 on ELVIS Also, connect the ground of the amplifier

PART 2 SOFTWARE Constructing the LAB VIEW part to monitor the status of switch the first section to building the LAB VIEW VI to read the switch status. Right Click on block diagram go to instrument i/o instrument to NI EVLIS Repeat the same procedure explained ELVIS DO Close VI Right click on the block diagram & go to structure choose while loop place over read VI Right click on the block diagram & go to die & while loop Move your mouse over left edge on NI ELVIS D10 initialize VI & right click on device name then go keep your mouse on left border on NI ELVIS D10 INTIALLZE VI and go to constant you will see a text line

STEP 2: Constructing LAB VIEW Part to acquire the tem reading On the same previous VI using right click on block diagram go to measurement I/o then go to DAQ Right click on the block diagram & go to structure choose while loop Enter the calibration equation by placing a formula node

STEP 3: Completing the LAB VIEW VI: Right click on block diagram & go to Structures

PREPARED BY SR/SM

EXP NO: DATE :


PART 2: DAQ ASSISTANT

STUDY OF NI ELVIS

When DAQ is placed in block diagram a series of pop-up provide medium Select measurement type Select Analog I / P Select thermocouple At this point the DAQ ASSISANT opens a window which displays option for configuring the selected channels

Result: Thus the Digital to Analog acquisition interfacing was successfully designed and studied

AIM: To Study the Lab VIEW program by NI ELVIS by using LABVIEW 8.5 APPARATUS REQUIRED: Lab view 8.5 by NI THEORY: ANALOG INPUT CIRCUITARY The NI ELVIS series period right diff high impedance analog I/P channel available On NI ELVIS series prototype board in to a single analog to digital converter

MULTIPLEXER: The NI ELVIS series was one analog to digital (ADC) for analog I/P Multiplexer (MUX) One AI channel at a time ADC through NI PGIA AT TERMINAL CONFIGURATION SELECTION: At terminal configuration solution circuit selects B/W diff referred single ended & non-referential can a different mode for more information PREPARED BY SR/SM

INTRUMENTATION AMP (NI-PGIA) The NI programmable gain in stamp (NI PGIA) a measurement setting time A/D CONVERTER: The NILIVIS series was an analog to digital converter (APL) to convert 16 bit digital no. NI ELVIS series can perform both single & multiply A/D conversion of a large first in first out (FIFO) DACs Digital to analog converter convert analog voltage AOFIFO: The AOFIFO enables analog o/p ware form generation m/y buffer download & points DAC s without computer interaction AD SAMPLE CLOCK: The AD sample, click trigger a DAC conversion

PREPARED BY SR/SM

Result: Thus the Study and NI ELVIS was studied successfully

PREPARED BY SR/SM

You might also like