DAQ record

36
EEE544: DATA ACQUISITION AND SIGNAL CONDITIONING (Laboratory Record) SUBMITTED BY ARUNKUMAR B REGD. NO.-14MMT1001 M.TECH MECHATRONICS

description

DAQ lab recordLab viewMultisim

Transcript of DAQ record

M. Tech Mechatronics- DAQ lab manual

ARUNKUMAR B (14MMT1001)

EEE544: DATA ACQUISITION AND SIGNAL CONDITIONING

(Laboratory Record)

SUBMITTED BYARUNKUMAR BREGD. NO.-14MMT1001M.TECH MECHATRONICSINDEXSI noExperiment DATEPage Number

1 LabVIEW circuit for arithmetic operations29-5-20153

2 LabVIEW circuit for the different wave generations30-5-20155

3 LabVIEW circuit for Amplitude Modulation5-6-20157

4 LabVIEW circuit for LED flashing operation5-6-20158

5 LabVIEW circuit for tank control using Flat sequence6-6-20159

6 LabVIEW circuit to design password protected screen6-6-201511

7 Inverting and Non-inverting amplifier using Multisim19-6-201513

8 Wave shaping circuits using Multisim19-6-201516

9 Wheatstone bridge using Multisim19-6-201519

10 R-2R ladder network using Multisim19-6-201521

11 Transistorized amplitude modulation using Multisim19-6-201523

12 LabVIEW circuit to interface the hardware LED ON or OFF with respect to the Oddness or Evenness of the given number27-6-201524

13 LabVIEW circuit to interface the hardware to blink 2 LEDs.27-6-201526

Experiment No. 1Aim: Design of the Lab-View circuits for Arithmetic operations.Requirements: VI Lab-View software.

Procedure:

1. Open the Lab-View software. Create new file, press Ctrl+T to get two panels of it.

2. For performing the arithmetic operations take the inputs and outputs from the numeric controllers and indicators as shown in left window in figs below.

3. In the right window we can view the respected symbols of numeric indicators and controllers.4. Take arithmetic operators from mathematics numeric - ADD, SUBSTRACT, MULTIPLY & DIVIDE symbols.5. Do the required connections as shown in fig.16. For designing even or odd checking program take arithmetic operators from mathematics numeric QUOTIENT AND REMAINDER. Take logic operation from programming-comparison-EQEAL AND NOT EQUAL.

7. Do the required connections as shown in fig.28. And give the input constants to the corresponding arithmetic operations.

9. Click on run button to get the output.Simulation Output:

Fig.1. simple arithmetic operations.

Fig.2. detection of odd or even circuit.Inference:

1. When the program is run we can give numerical data for arithmetic operations.

2. The corresponding output can be seen in indicators.3. The second experiment gives the detection of odd or even we applied as input.Conclusion:Thus we have studied the Arithmetic operations and even or odd detection in Lab-View software.Experiment No. 2

Aim: Design of the Lab-View circuits for square wave and random wave generation.

Requirements: NI Lab-View software.

Procedure:

1. Open the Lab-View software. Create new file, press Crl+T to get two panels of it.

2. For taking While-loop, press Right click-programing- structures- While loop. And draw the required size of While-loop, as shown in right window.

3. Give a stop switch for stop the while operation.4. Take the essential functional blocks from the proper menu to fulfill the logic.

5. Do the required connections as shown in fig.

6. Click on run button to get the output.Simulation Output:

Fig.1 Square wave generation

Fig.2 .Random wawe generationInference:

1. When the first program runs the wave form chart shows a square wave.2. When the second program runs the chart shows a random wave.

3. The loop number can visible on the front panel.Conclusion:

Thus we have studied the square wave generation and random wave generations in Lab-View.

Experiment No. 3Aim: Design of a LabVIEW circuit for Amplitude Modulation and verify the wave forms.Requirements: NI Lab-View software.

Procedure: 1. Open the LabVIEW software. Create new file, press Ctrl+T to get the block diagram and front panel.

2. For taking While-loop, press Right click-programming- structures- While loop. And draw the required size of While-loop, as shown in right window.

3. Give a stop switch to the While-loop for executing it that continuously.4. Take the essential functional blocks from the proper menu to fulfill the logic.

5. Do the required connections as shown in fig.6. Run the program and we will get the output.

Simulation Output:

Inference:1. The example used here is a amplitude modulation.2. When the program is run, the waveform chart shows the amplitude modulated sine wave output.

3. The program is stopped when the stop of while is clicked.Conclusion:

Thus we have studied to perform AM modulation and wave forms studied.Experiment No. 4

Aim: Design of the Lab-View circuits for LED flashing operation.

Requirements: NI Lab-View software.

Procedure:

1. Open the Lab-View software. Create new file, press Ctrl+T to get two panels of it.

2. Go to system containers tab control and make a tab.

3. Take and place four LED indicators on tab for flashing operation.

4. For taking Flat sequence, press Right click-programming- structures- Flat sequence. and draw the required size of Flat sequence, as shown in right window.5. For controlling one indictor in different positions right click on the indicator --create -- local variable.6. For taking While-loop, press Right click-programming- structures- While loop. And draw the required size of While-loop, as shown in right window.

7. Give a stop switch to the While-loop for executing it that continuously.

8. Take the essential functional blocks from the proper menu to fulfill the logic.

Do the required connections as shown in fig. Run the program and we will get the output

Simulation Output:

Inference:1. The example used here is a LED flashing operation.2. When the program is run, the LED starts sequentially on and off

3. The program is stopped when the stop switch of while is clicked.Conclusion:

Thus the LED flashing operation by using flat sequencing is carried out in LabVIEW.

Experiment No. 5Aim: Design of the Lab-View circuits for tank control using flat sequence.Requirements: NI Lab-View software.

Procedure:

1. Open the LabVIEW software. Create new file, press Ctrl+T to get the block diagram and front panel.2. For simulating tank, press right click -- Modern numerical vertical fill slide.

3. For taking Flat sequence, press Right click-programming- structures- Flat sequence. And draw the required size of Flat sequence, as shown in right window.

4. For controlling one indictor in different positions right click on the indicator --create -- local variable.5. For taking case structure, press Right click-programming- structures- case structure. And draw the required size of case structure, as shown in right window.

6. For taking While-loop, press Right click-programming- structures- While loop. And draw the required size of While-loop, as shown in right window.

7. Give a stop switch to the While-loop for executing it that continuously.

8. Take the essential functional blocks from the proper menu to fulfill the logic.

9. Do the required connections as shown in fig.

10. Run the program and we will get the output.Simulation Output:

Inference:1. As per the above picture, it shows the adjusting of tank level.

2. If the input is greater than or equal to 8. The program makes the level of tank as same and it shows that tank is full and LED glows green.

3. If the input is lesser than 8. The program makes the level of tank as same and it shows that tank is not full and LED goes red.Conclusion:

Thus we have studied the design of tank control circuit using LabVIEW.Experiment No. 6Aim: Design of the Lab-View circuits circuit to design a password protected screen and check different conditions.Requirements: NI Lab-View software.

Procedure:

1. Open the Lab-View software. Create new file, press Crl+T to get two panels of it.2. Go to system containers tab control and make a tab.3. Drag and drop pictures as you like.

4. Comment by double clicking on front panel and adjust font and colour.

5. Add one LED indictor and one string indicator.

6. Add 2 string controls and name it as user ID and Password. Right click on the password named string controls and tick password display.

7. Go to block diagram panel and take the essential functional blocks from the proper menu to fulfill the logic.

8. Do the required connections as shown in fig.

9. Run the program and we will get the output..Simulation Output:

Inference:1. Whenever you are giving right password as well as password it will show valid password and LED glows green.

2. Whenever you are giving wrong password as well as username, it shows wrong password and LED goes red. 3. If the password is correct with a non-correct username invalid username will shows as output and LED shows red.

Conclusion:Thus we have studied the how create a password protected screen using LabVIEW .Experiment No. 7

Aim: Design an inverting and non-inverting amplifier using Multisim software and check the output waveforms with respect to input..

Requirements: NI MultisimProcedure:

1. Open the Multisim software and create new file.2. Draw the circuits as given below.3. Connect the function generator to the inverting input of the 741 opamp for first and non-inverting terminal for the second. 4. Measure the output voltage in the oscilloscope by running the program

Simulation Output:

Fig.1 inverting amplifier

Fig.2 non-inverting amplifier

Inference:1. We see a non-inverted output and inverted output in an oscilloscope.2. For non-inverting amplifier gain is 3.

3. For inverting amplifier gain is 2 with a 180 degree phase shift.

4. Output can be varied based on the input from the function generator.Conclusion:

Thus the inverting and non-inverting amplifier are simulated and studied using Multisim.Experiment No. 8

Aim: Wave shaping circuits using Multisim.Requirements: NI MultisimProcedure:

1. Open the Multisim software and create new file2. Draw the circuit as given below.3. A differentiator is created by 741 op-amp

4. Connect the function generator to the inverting input of the 741 op-amp with a triangular wave output.5. In the case of an integrator the square wave input can give.6. Measure the output waveforms in the oscilloscope by running the programSimulation Output:

Fig.differentiator

Fig.Differentiator output wave form

Fig. integrator

Fig.integrator output wave form.Inference:1. The differentiation of a triangular wave gives a square wave output.2. The integration of the square wave gives a triangular wave output.Conclusion:

Thus the differentiator as well as integrator circuits are simulated and output waveforms studied using Multisim.

Experiment No. 9

Aim: Design and study wheatstone bridge pick up circuit using Multisim.Requirements: NI MultisimProcedure:

1. Open the Multisim software and create new file2. Draw the circuit as given below3. Change the value of the resistor R5 measure the voltage for a increment of 100 from 0-1000.4. Run the program

5. Draw graphs between resistance vs output voltage Simulation Output:

Inference:1. From the circuit we see that, as the value of R4 is increased a considerable decrease in the output voltage is seen.2. Current will increased with respect to increase in resistance.Conclusion:

Thus the Wheatstone bridge is simulated and the output is verified using Multisim software.Experiment No. 10

Aim: R-2R ladder network using Multisim.Requirements: NI MultisimProcedure:

1. Open the Multisim software and create new file2. Draw the circuit as given below3. Change the values of R = 15k and 2R = 30k4. Connect a multimeter in the output of each 2R to measure the current across each resistor output5. Based on the combination input, connect it to the inverting OPAMP_3T_VIRTUAL and measure the output voltage.Simulation Output:

Inference:1. Based on the digital combination that is input to the opamp, the corresponding voltage can be seen2. The feedback resistance is equal to the R value to obtain the corresponding output gain

Result:

Thus the design of a R-2R ladder network to convert 3-bit digital word was studied and the output voltage between the calculated and measured were compared.

Experiment No. 11

Aim: Transistorized amplitude modulation using MultisimRequirements: Multisim software.Procedure:1. Open Multisim software.2. Create the circuit as per the circuit diagram.3. Connect two function generators for signal and carrier waves.4. Take signal as sine wave and carrier square wave. 5. Run the simulationSimulation Output:

Inference:1. The modulated output can be seen.

2. According to the carrier frequency the modulated output frequency will vary.Conclusion:

Thus the amplitude modulation using transistors is simulated and output verified.Experiment No. 12

Aim:

Design of a LabVIEW circuit to interface the hardware LED ON or OFF with respect to the Odd or Even nature of the given number.

Requirements: VI LabVIEW software and DAQ card NI USB-6211Procedure:1. Open LabVIEW and create a while loop.

2. A timer is included in while loop.3. Add a DAQ assistant and generate an analog signal of voltage once the DAQ card is connected to the LEDs.

4. Give a text control and implement the even or odd checking logic in it.

5. Take the logic output of above and supply to a case structure.

6. In the two windows of case structure, make a DAQ assistant as like in step 2. Give a constant of 5 to true case and constant 0 to false case.

7. A timer is included in both the case structured loop.

8. For analyzing the output v/s input we can connect it to a waveform chart.

9. Run the program

Simulation Output:

Hardware Connection:

Inference:

1. The LED will be ON when the value given is ODD and LED will be off when the value given is EVEN.

2. The input v/s output waveform can be seen in the waveform chart.

3. The intensity of light produced from the LED can be controlled by changing the analog value of 5 to smaller one.

Conclusion:

Thus the Design of a LabVIEW circuit to interface the hardware LED ON or OFF with respect to the Oddness or Evenness of the given number was obtained. And the wave form was observed.

Experiment No. 13

Aim: Design of a LabVIEW circuit to interface the hardware to blink 2 LEDs which are connected in two different analog output pins in a DAQ card.

Requirements:

VI LabVIEW software and DAQ card NI USB-6211Procedure:1. Open LabVIEW software and create a while loop

2. Inside the while loop, create a flat sequence and add 2 LEDs in the 2 different flat sequence as in the figure

3. Create a local variable for the 2 different LEDs and place them on opposite flat sequence4. Add a timer of 5 seconds5. Add a DAQ assistant and generate an analog signal of voltage once the DAQ card is connected to the LEDs as in the hardware connection figure6. Select the AO0 port of 5V to generate signal to light up the first LED keeping AO1 as a constant 0 voltage value in the first flat sequence in two different DAQ assistant 7. Repeat step 6 keeping AO0 to 0V and AO1 to 5V8. Run the simulationSimulation Output:

Hardware circuit

Inference:1. The LED will get toggled with respect to a delay of the given time.

2. The timing of the LED ON and OFF can be controlled.

3. The intensity of light produced from the LED can be controlled by changing the analog value of 5 to smaller one.

Conclusion:

Thus the software to hardware interface was studied by blinking 2 LEDs

*********

22