simulation software lab manual - medical electronics engineering by prof muhammadu sathik raja

64
1 SENGUNTHAR COLLEGE OF ENGINEERING SATHINAICKANPALAYAM, KUMARAMANGALAM (PO), TIRUCHENGODE 637205 Name:…………………………………………………………………………………………….... Branch: …MEDICAL ELECTRONICS ENGINEERING……… Semester:……VIII………… Name of the laboratory: SIMULATION SOFTWARE LAB…………………………………. This is to certify that this is the bonafide record of work done by……………………………........ During the year 2013. University register No: Staff in charge : Head of the Department Date: Submitted for the practical examination held at Sengunthar College of Engineering On …………………… INTERNAL EXAMINER EXTERNAL EXAMINER

Upload: muhammadu-sathik-raja

Post on 19-May-2015

774 views

Category:

Technology


8 download

DESCRIPTION

BY PROF MUHAMMADU SATHIK RAJA .M.S

TRANSCRIPT

Page 1: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

1

SENGUNTHAR COLLEGE OF ENGINEERING

SATHINAICKANPALAYAM, KUMARAMANGALAM (PO),

TIRUCHENGODE – 637205

Name:……………………………………………………………………………………………....

Branch: …MEDICAL ELECTRONICS ENGINEERING………Semester:……VIII…………

Name of the laboratory: SIMULATION SOFTWARE LAB………………………………….

This is to certify that this is the bonafide record of work done by……………………………........

During the year 2013.

University register No:

Staff in – charge : Head of the Department

Date:

Submitted for the practical examination held at Sengunthar College of Engineering

On ……………………

INTERNAL EXAMINER EXTERNAL EXAMINER

Page 2: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

2

INDEX

SL.NO DATE NAME OF THE

EXPERIMENT

PAGE

NO

MARKS

AWARED SIGNATURE

1A

HDP- 01 CORONARY RISK

CALCULATION FOR

DISEASED PATIENT 3

1B

HDP- 01 CORONARY RISK

CALCULATION FOR

NORMAL PATIENT 5

1C HDP- 03 DEFIBRILLATOR

USING SIMULINK 7

2 HOSPITAL MANAGEMENT

SYSTEM - MYCIN 11

3 EPILEXIA - TEIRASIS

MEDICAL SOFTWARE 27

4A STRESS OF STENT –ANSYS

SOFTWARE 34

4B THERMAL CONDUCTION-

ANSYS SOFTWARE 37

5A

BLOOD PRESSURE

MEASUREMENT BY

USING PUFF MEDICAL

SOFTWARE

40

5B AMPLITUDE MODULATION-

SIMULINK 43

5C

RESPIRATORY RATE

DISORDER- PUFF MEDICAL

SOFTWARE 49

Page 3: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

3

AIM:

To evaluate cardio vascular risk in the patient with coronary heart

disease.

SOFTWARE:

Heart development program software.

Cardio vascular _risk _2software(doctorslongue.com)

PROCEDURE:

Enter the data in to the form.

Then click compute.

Display the percentage of risk.

THEORY:

CORONARY HEART DISEASE

Coronary heart disease is the narrowing or blockage of the coronary arteries,

usually caused by atherosclerosis. Atherosclerosis is the buildup of cholesterol and

fatty deposits(called plaques) on the inner walls of the arteries. These plaques can

restrict blood flow to the heart muscle by physically clogging the artery or by

causing abnormal artery tone and function.

Without an adequate blood supply , the heart becomes starved of oxygen and

the vital nutrients it needs to work properly. This can cause chest pain called

angina. If the energy demands of the heart become much greater than its blood

supply , a heart attack may occur.

EXP.NO: 1A HDP- 01 CORONARY RISK CALCULATION

DATE: FOR DISEASED PATIENT

Page 4: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

4

OUTPUT:

RESULT:

Thus the cardio vascular risk for coronary heart disease in patient has been

checked.

Page 5: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

5

AIM:

To evaluate cardio vascular risk in the patient with coronary heart

disease.

SOFTWARE:

Heart development program software.

Cardio vascular _risk _2software(doctorslongue.com)

PROCEDURE:

Enter the data in to the form.

Then click compute.

Display the percentage of risk.

EXP.NO: 1B HDP- 02 CORONARY RISK CALCULATION

DATE: FOR NORMAL PATIENT

Page 6: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

6

OUTPUT:

RESULT:

Thus the cardiovascular risk for normal patient has been checked.

Page 7: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

7

AIM:

To design the defibrillator circuit by using simulink software for HDP.

TOOLS REQUIRED:

MATLAB10

PC

PROCEDURE:

Create a new model window by choosing “File”->”New”->”Model”

Drag the “AC voltage source “from “sim power system”->”electrical

sources” to the model window.

Drag “linear transformer “ from “sim power system” to the model window.

Drag “diode” from “sim power system”->”power electronics” to the model

window.

Drag “scope” block from “simulink”-> “sinks” to the model window.

Drag “workspace” block from “simulink”-> “sinks” to the model window.

Drag “product” from “simulink”-> “commonly used block” to the model

window.

Click “simulation”-> “simulation parameters”.

Press “start simulation” to run the program.

Double click the “scope”

EXP.NO: 1C HDP- 03 DEFIBRILLATOR USING

DATE: SIMULINK

Page 8: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

8

CIRCUIT DIAGRAM:

Page 9: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

9

OUTPUT:

Scope

Scope2

Page 10: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

10

RESULT:

Thus the defibrillator circuit is designed by using simulink software

for HDP.

Page 11: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

11

AIM:

To determine the inpatient and outpatient details.

SOFTWARE:

MYCIN- Hospital Management Software.

PROCEDURE:

Enter the details of the patients.

Save the details in the databases.

Generate the report.

Theory:

MYCIN is one of the most widely known medical expert system. It contains

number of rules developed by the physicians and surgeons. It is the program for

advising the physician and treating the bacterial infection of the blood. It was the

first large medical expert system that provides user the explanation and reasoning.

MYCIN conducts a question and answer dialogue such as name, age , sex,

infection area and the presence of specific symptoms relevant diagnosis of the

disease and then it recommends certain course of anti biotics. MYCIN never

compares the symptoms of two different patients.

EXP.NO: 2 DEVELOP THE HOSPITAL MANAGEMENT

DATE: SYSTEM BY MYCIN SOFTWARE

Page 12: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

12

BLOCK DIAGRAM OF MYCIN:

USER

INTERFACE

INTERFACE

STRATEGY

KNOWLEDGE

BASE

USER

EXPERT SYSTEM

BUILDING TOOLS

DOMAIN

EXPERT KNOWLEDGE

ENGINEER

Page 13: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

13

FORM 1:

LOGIN FORM:

Private Sub Command1_Click()

If Text1.Text = "scew" And Text2.Text = "12345" Then

Form2.Show

Else

MsgBox ("Enter the correct details and try again")

Form1.Show

End If

End Sub

Private Sub Command2_Click()

Form1.Show

Text1.Text = ""

Text2.Text = ""

End Sub

FORM 2:

INPATIENT DETAILS:

Dim db As Database

Dim rs As Recordset

Private Sub Calendar1_Click()

Text4.Text = Format(Calendar1, "dd-mm-yyyy")

End Sub

Private Sub Calendar2_Click()

Text5.Text = Format(Calendar2, "dd-mm-yyyy")

End Sub

Page 14: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

14

Private Sub Command1_Click()

rs.AddNew

rs("NAME") = Text1.Text

rs("PATIENT ID") = Text2.Text

rs("BLOOD GROUP") = Text3.Text

rs("ADMIT DATE") = Text4.Text

rs("DISCHARGE DATE") = Text5.Text

rs("CONTACT NO") = Text6.Text

rs("ADDRESS") = Text7.Text

rs.Update

MsgBox ("current database saved")

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

End Sub

Private Sub Command3_Click()

rs.Delete

End Sub

Private Sub Command4_Click()

Form3.Show

Page 15: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

15

End Sub

Private Sub Form_Load()

Set db = OpenDatabase("d:\abi\MSG.mdb")

Set rs = db.OpenRecordset("INPATIENT")

Calendar1.Visible = False

Calendar2.Visible = False

End Sub

Private Sub Text4_GotFocus()

Calendar1.Visible = True

End Sub

Private Sub Text4_LostFocus()

Calendar1.Visible = False

End Sub

Private Sub Text5_GotFocus()

Calendar2.Visible = True

End Sub

Private Sub Text5_LostFocus()

Calendar2.Visible = False End Sub

FORM 3:

OUTPATIENT DATAILS:

Dim db As Database

Dim rs As Recordset

Private Sub Calendar1_Click()

Text3.Text = Format(Calendar1, "dd-mm-yyyy")

End Sub

Page 16: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

16

Private Sub Command1_Click()

rs.AddNew

rs("NAME") = Text1.Text

rs("PATIENT ID") = Text2.Text

rs("CHECKUP DATE") = Text3.Text

rs("DOCTOR NAME") = Text4.Text

rs("ADDRESS") = Text5.Text

rs("CONTACT NO") = Text6.Text

rs.Update

MsgBox ("current database saved")

End Sub

Private Sub Command2_Click()

Form2.Show

End Sub

Private Sub Command3_Click()

Form4.Show

End Sub

Private Sub Command4_Click()

rs.Delete

MsgBox ("current database deleted")

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Page 17: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

17

End Sub

Private Sub Command5_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

End Sub

Private Sub Form_Load()

Set db = OpenDatabase("d:\abi\msg1.mdb")

Set rs = db.OpenRecordset("OUTPATIENT")

Calendar1.Visible = False

End Sub

Private Sub Text3_GotFocus()

Calendar1.Visible = True

End Sub

Private Sub Text3_LostFocus()

Calendar1.Visible = False

End Sub

FORM 4:

INPATIENT BILLING:

Dim db As Database

Dim rs As Recordset

Private Sub Calendar1_Click()

Page 18: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

18

Text3.Text = Format(Calendar1, "dd-mm-yyyy")

End Sub

Private Sub Calendar2_Click()

Text4.Text = Format(Calendar2, "dd-mm-yyyy")

End Sub

Private Sub Command1_Click()

rs.AddNew

rs("NAME") = Text1.Text

rs("PATIENT ID") = Text2.Text

rs("ADMIT DATE") = Text3.Text

rs("TODAYS DATE") = Text4.Text

rs("DOCTORS CHARGES") = Text5.Text

rs("TREATMENT CHARGES") = Text6.Text

rs("ROOM CHARGE") = Text7.Text

rs.Update

MsgBox ("current database saved")

End Sub

Private Sub Command2_Click()

Form3.Show

End Sub

Private Sub Command3_Click()

Form5.Show

End Sub

Private Sub Command4_Click()

rs.Delete

MsgBox ("current database deleted")

Page 19: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

19

End Sub

Private Sub Command5_Click()

Val(Text8.Text) = Val(Text5.Text + Text6.Text + Text7.Text)

End Sub

Private Sub Command6_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

End Sub

Private Sub Form_Load()

Set db = OpenDatabase("d:\abi\msg2.mdb")

Set rs = db.OpenRecordset("IPBILLING")

Calendar1.Visible = False

Calendar2.Visible = False

End Sub

Private Sub Text3_GotFocus()

Calendar1.Visible = True

End Sub

Private Sub Text3_LostFocus()

Calendar1.Visible = False

End Sub

Page 20: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

20

Private Sub Text4_GotFocus()

Calendar2.Visible = True

End Sub

Private Sub Text4_LostFocus()

Calendar2.Visible = False

End

FORM 5:

OUTPATIENT BILLING:

Dim db As Database

Dim rs As Recordset

Private Sub Command1_Click()

rs.AddNew

rs("NAME") = Text1.Text

rs("PATIENT ID") = Text2.Text

rs("ADDRESS") = Text3.Text

rs("DOCTORS CHARGE") = Text4.Text

rs.Update

MsgBox ("current database saved")

End Sub

Private Sub Command2_Click()

Form4.Show

End Sub

Private Sub Command3_Click()

rs.Delete

MsgBox ("current database deleted")

Page 21: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

21

End Sub

Private Sub Command4_Click()

End

End Sub

Private Sub Command5_Click()

Val(Text6.Text) = Val(Text5.Text)

End Sub

Private Sub Command6_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

End Sub

Private Sub Form_Load()

Set db = OpenDatabase("d:\abi\msg3.mdb")

Set rs = db.OpenRecordset("OPBILLING")

End Sub

Page 22: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

22

OUTPUT:

Page 23: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

23

Page 24: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

24

Page 25: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

25

Page 26: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

26

RESULT:

Thus the development of hospital management system by using MYCIN

software was executed successfully.

Page 27: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

27

AIM:

To determine the Epilexia of blind patient by TEIRASIS.

HARDWARE:

Computer.

Printer.

Chart.

SOFTWARE:

TEIRASIS medical software.

Printer software.

THEORY:

TEIRESIAS recognizes that some of the knowledge required for the

knowledge base is inexact or rough and it succeeds in offering advice for its

correction. It also provides method for extracting the best performance out of an

expert system such as MYCIN.

TEIRESIAS's approach is to make use of the expert's ability to correct incorrect or

partially correct responses to common questions and then to focus the expert's

reply

TEIRESIAS fixes bugs by

1) Stopping the performance program when the human expert identifies an

error;

2) Working backwards through the steps in the performance program that

led to the error until the bug is found;

3) Helping the expert fix the bug by modifying the knowledge base

EXP.NO: 3 EPILEXIA OF BLIND PATIENT

DATE: USING TEIRASIS MEDICAL SOFTWARE

Page 28: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

28

TEIRESIAS's techniques for generating explanations are based upon two

assumptions

The two assumptions used are;

1) That a recapitulation of program actions can be an effective explanation

as long as the correct level of detail is given

2) That there is some shared framework for viewing the program's actions

that will make them understandable to the user.

PROCEDURE:

Take one option.

After selecting the condition enter data in the sheet.

After that some other table will displayed.

Then enter data into the next table.

Then we will obtain the result.

Then click compute.

Probability of disease will display.

Page 29: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

29

OUTPUT:

Page 30: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

30

Page 31: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

31

Page 32: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

32

Page 33: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

33

RESULT:

Thus the Epilexia of a blind person was simulated & analysed successfully

by using TERASIS medical software.

Page 34: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

34

AIM:

To determine the stress analysis of stet using ANSYS Software.

SOFTWARE USED:

ANSYS VERSION-11

BOUNDARY CONDITIONS:

Material properties:

Young’s Modulus (Ex) = 2e5

PRXY = 0.3

Real constants:

Area = 100

Izz = 0.0833

Height = 10

Force = 100 N

Density = 7.86e-6

PROCEDURE

STEP:1

Preference > Structural> OK

STEP:2

1)Preprocessor > Element type > Add /Edit/Delete > Add > Beam 2D elastic

3 > OK

EXP.NO: 4A STRESS OF STENT

DATE: ANSYS SIMULATION SOFTWARE

Page 35: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

35

2)Real constants > > Add /Edit/Delete > Add>Area> Izz = 0.0833>Total

beam hight 10>OK

3)Material properties > Material models >

structural>linear>elastic>isotropic>Ex=2e6>PRXY=0.3>density = 7.86e

-6>OK

4)Modeling>create>key point>inactive CS>keypoint 1>0,0>keypont

2>1000,0>OK

5)modeling>create>line>straight line>OK

6)meshing>size controls>manual size>line>all line>edge length=100>OK

7)mesh>lines>pick all>OK

STEP:3

1)solution>analysis type>new analysis>static

2)define load>apply>structural>displacement>on key point>fix keypoint 1

3)apply>structural>force/moment>on key point>select key point 2 >Fy>load

value>100N

4)solve>current LS>OK

STEP:4

1)General post processing > plot result DOF+under+edge

2)plot result>contour plot>nodal solution>DOF solution>displacement

vector sum>OK

Page 36: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

36

OUTPUT:

RESULT:

Thus the given drawing stress analysis was determined in distributed level

Page 37: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

37

AIM:

To determine the temperature of given solid by using Ansys-11.

PROBLEM DESCRIPTION:

Length of the solid in 1 cm

Height of the solid in 1 cm

BOUNDARY CONDITIONS:

Top is maintained at 500oc

Outer solid are maintained at 100oc

Thermal conductivity k= 10w/m2o

c

PROCEDURE:

Step: 1

Preference > Structural > Ok

Step: 2

1) Preprocessor > Element type > Add/Edit/Delete > Add > Solid quad 4 node 55

> Ok

2) Material properties > Material models > Thermal > Conductivity > Isentrophic

> Kxx=10

3) Modeling > Create > Areas > Rectangle > By 2 Corners >

x=0,y=0,width=1,height=1

4) Meshing > Size control > Manual size > Area > All areas=0.05

5) Mesh > Areas > Free > Pick all

Step: 3

solution

1)solution > Analysis type > New analysis > Steady > State > Apply constraints

2)solution > Define loads > Apply > Thermal > Temperature > on lines

EXP.NO: 4B THERMAL CONDUCTION

DATE: ANYSYS SIMULATION SOFTWAR E

Page 38: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

38

3)Top edge of the horizondal lines 500oc

4)left,right,bottom surface 100oc

5)solve > currentls > Ok

Step: 4

1)General post process > Plot result > Contoure plot > Nodal solution > Dof

solution > Displacement vector sum > Ok

Page 39: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

39

OUTPUT:

RESULT:

Thus the temperature distribution of the given solid is determined.

Page 40: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

40

AIM:

To measure blood pressure using systolic, diastolic and pulse value.

SOFTWARE:

PUFF- Blood pressure software.

PROCEDURE:

Enter systolic value.

Enter the diastolic value.

Enter the pulse rate.

View the report.

EXP.NO: 5A BLOOD PRESSURE MEASUREMENT BY

DATE: USING PUFF MEDICAL SOFTWARE

Page 41: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

41

Page 42: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

42

OUTPUT:

RESULT:

Thus the blood pressure has been simulated & recorded by using PUFF

software.

Page 43: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

43

AIM:

To simulate the amplitude modulation and demodulation using simulink.

TOOLS REQUIRED:

MATLAB

PC

PROCEDURE:

Create a new model window by choosing file > new > model.

Drag sine wave block from simulink > source to the model window.

Drag scope block from simulink > sinks to the model window.

Left- press the mouse when the arrow becomes a single cross by moving the

mouse near to the right side of “sine wave” ,keep left button pressed and

move the single cross to the left side of scope.

Click simulation > simulation parameters.

Double click the sine wave and set the parameters.

Press start simulation to run the program.

Double click the scope.

To set the parameters of scope press parameters button on the display panel.

Right click on the scope ,then choose axes properties to set “Y” scales.

EXP.NO: 5B AMPLITUDE MODULATION

DATE: SIMULINK SOFTWARE

Page 44: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

44

CIRCUIT DIAGRAM:

Page 45: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

45

OUTPUT

Page 46: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

46

Page 47: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

47

FREQUENCY SPECTRUM OUTPUT -1

FREQUENCY SPECTRUM OUTPUT -2

Page 48: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

48

FREQUENCY SPECTRUM OUTPUT -3

RESULT:

Thus the amplitude modulation and demodulation was simulated

successfully using simulink.

Page 49: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

49

AIM:

To determine the respiratory rate disorders and monitoring.

PROGRAM:

Form 1:

Private Sub Command1_Click()

If Text1.Text = "123" And Text2.Text = "456" Then

Form2.Show

Else

MsgBox "User name or password incorrect"

Form1.Show

End If

End Sub

Private Sub Command2_Click()

Form1.Show

Text1 = ""

End Sub

EXP.NO: 5C RESPIRATORY RATE DISORDER

DATE: PUFF MEDICAL SOFTWARE

Page 50: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

50

Form 2:

Dim result As Integer

Private Sub Check1_Click()

If Check1.Value = Checked Then

result = I

End If

End Sub

Private Sub Check4_Click()

If Check4.Value = Checked Then

result = I

End If

End Sub

Private Sub Check6_Click()

If Check6.Value = Checked Then

result = I

End If

End Sub

Private Sub Check8_Click()

If Check8.Value = Checked Then

result = I

End If

End Sub

Private Sub Check3_Click()

If Check3.Value = Checked Then

result = I

Page 51: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

51

End If

End Sub

Private Sub Command1_Click()

Form3.Show

End Sub

Private Sub Command2_Click()

Form1.Show

End Sub

Form 3:

Private Sub Check11_Click()

If Check11.Value = Checked Then

result = I

End If

End Sub

Private Sub Check1_Click()

If Check1.Value = Checked Then

result = I

End If

End Sub

Private Sub Check3_Click()

If Check3.Value = Checked Then

result = I

End If

End Sub

Private Sub Check5_Click()

Page 52: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

52

If Check5.Value = Checked Then

result = I

End If

End Sub

Private Sub Check7_Click()

If Check7.Value = Checked Then

result = I

End If

End Sub

Private Sub Command1_Click()

Form4.Show

End Sub

Private Sub Command2_Click()

Form2.Show

End Sub

Form 4:

Dim result As Integer

Private Sub Command1_Click()

Form5.Show

End Sub

Private Sub Check1_Click()

If Check1.Value = Checked Then

result = I

End If

End Sub

Page 53: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

53

Private Sub Check3_Click()

If Check3.Value = Checked Then

result = I

End If

End Sub

Private Sub Check5_Click()

If Check5.Value = Checked Then

result = I

End If

End Sub

Private Sub Check7_Click()

If Check7.Value = Checked Then

result = I

End If

End Sub

Private Sub Check9_Click()

If Check9.Value = Checked Then

result = I

End If

End Sub

Private Sub Command2_Click()

Form3.Show

End Sub

Form 5:

Private Sub Check1_Click()

Page 54: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

54

If Check1.Value = Checked Then

result = I

End If

End Sub

Private Sub Check3_Click()

If Check3.Value = Checked Then

result = I

End If

End Sub

Private Sub Check5_Click()

If Check5.Value = Checked Then

result = I

End If

End Sub

Private Sub Check7_Click()

If Check7.Value = Checked Then

result = I

End If

End Sub

Private Sub Check9_Click()

If Check9.Value = Checked Then

result = I

End If

End Sub

Private Sub Command1_Click()

I = 0

Page 55: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

55

'Form2

If Form2.Check1.Value = Checked Then

I = I + 5

End If

If Form2.Check4.Value = Checked Then

I = I + 5

End If

If Form2.Check6.Value = Checked Then

I = I + 5

End If

If Form2.Check8.Value = Checked Then

I = I + 5

End If

If Form2.Check3.Value = Checked Then

I = I + 5

End If

I = 0

'form3

If Form3.Check11.Value = Checked Then

I = I + 5

End If

If Form3.Check1.Value = Checked Then

I = I + 5

End If

If Form3.Check3.Value = Checked Then

I = I + 5

Page 56: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

56

End If

If Form3.Check5.Value = Checked Then

I = I + 5

End If

If Form3.Check7.Value = Checked Then

I = I + 5

End If

I = 0

'form4

If Form4.Check1.Value = Checked Then

I = I + 5

End If

If Form4.Check3.Value = Checked Then

I = I + 5

End If

If Form4.Check5.Value = Checked Then

I = I + 5

End If

If Form4.Check7.Value = Checked Then

I = I + 5

End If

If Form4.Check9.Value = Checked Then

I = I + 5

End If

I = 0

'form5

Page 57: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

57

If Form5.Check1.Value = Checked Then

I = I + 5

End If

If Form5.Check3.Value = Checked Then

I = I + 5

End If

If Form5.Check5.Value = Checked Then

I = I + 5

End If

If Form5.Check7.Value = Checked Then

I = I + 5

End If

If Form5.Check9.Value = Checked Then

I = I + 5

End If

Text1.Text = I

End Sub

Private Sub Command2_Click()

If Val(Text1.Text) <= 10 Then

Form6.Label1.Caption = " YOU ARE SUFFERED FROM RESPIRATORY DISEASE "

Form6.Show

End If

If Val(Text1.Text) = 0 Then

Form6.Label.Caption = " YOU ARE ALL RIGHT "

Form6.Show

End If

Page 58: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

58

End Sub

Private Sub Command3_Click()

Form4.Show

End Sub

Form 6:

Private Sub Label1_Click()

End Sub

Page 59: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

59

OUTPUT:

Page 60: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

60

Page 61: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

61

Page 62: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

62

Page 63: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

63

Page 64: SIMULATION SOFTWARE LAB MANUAL  - MEDICAL ELECTRONICS ENGINEERING  BY PROF MUHAMMADU SATHIK RAJA

64

RESULT:

Thus the respiratory rate has been successfully monitored using PUFF

Medical software.