0% found this document useful (0 votes)
10 views32 pages

PTT_LabManual

The document is a lab manual for the B.E. II Year Programming Tools & Techniques course at Shri G.S. Institute of Technology & Science, outlining the institute's vision, mission, and educational objectives. It details program outcomes, competencies, and performance indicators for biomedical engineering students, emphasizing skills in engineering knowledge, problem analysis, design solutions, and ethical practices. Additionally, it provides instructions for students on laboratory preparation and experiment execution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views32 pages

PTT_LabManual

The document is a lab manual for the B.E. II Year Programming Tools & Techniques course at Shri G.S. Institute of Technology & Science, outlining the institute's vision, mission, and educational objectives. It details program outcomes, competencies, and performance indicators for biomedical engineering students, emphasizing skills in engineering knowledge, problem analysis, design solutions, and ethical practices. Additionally, it provides instructions for students on laboratory preparation and experiment execution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

SHRI G.S.

INSTITUTE OF TECHNOLOGY & SCIENCE


(An Autonomous Institute Established in 1952)
Department of Biomedical Engineering

B.E. II YEAR
Session: Jan-June, 2025
BM: 29502 Programming Tools & Techniques
Lab Manual

Name of Student:

Class:

Enrolment No:

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
1
Institute Vision
A front-line institute in science and technology making significant
contributions to human resource development envisaging dynamic needs
of the society.

Institute Mission
To generate experts in science and technology akin to society for its
accelerated socioeconomic growth in professional and challenging
environment imparting human values.

Department Vision

To contribute for teaching excellence to generate human resource to


cater the needs of industries and hospitals for affordable healthcare through
research and innovation.

Department Mission
To bridge the engineering, science and healthcare sectors for
indigenous development and to impart community services for mass
healthcare through continuous research.

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
2
Program Educational Objectives (PEOs)
PEO 1 To prepare graduates with core knowledge for successful technical careers.

PEO 2 To develop future industry professionals with excellent communication skills.


To develop professional approach, ethical attitude, communication skills, team work and
PEO 3 leadership quality and adapt technological advancements and innovations by engaging in
continuous learning.
To develop skills to become an entrepreneur for promoting research and development of low
PEO 4
cost healthcare technologies.

To encourage students for higher studies in technology and management and promote
PEO 5
lifelong learning attitude.

Program Outcomes and Performance Indicators

Program Outcomes – Competencies – Performance Indicators


PO 1: Engineering knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and
an engineering specialization for the solution of complex engineering problems.

Competency Performance Indicators


1.1 Demonstrate competence in 1.1.1 Apply mathematical techniques such as calculus, linear algebra,
mathematical modelling and statistics to solve problems
1.1.2 Apply advanced mathematical techniques to model and solve
Biomedical engineering problems
1.2 Demonstrate competence in basic 1.2.1 Apply laws of natural science to an engineering problem
sciences
1.3 Demonstrate competence in 1.3.1 Apply fundamental engineering concepts to solve engineering
engineering fundamentals problems
1.4 Demonstrate competence in 1.4.1 Apply integrated engineering concepts to solve engineering
specialized engineering knowledge to problems.
the program

PO 2: Problem analysis: Identify, formulate, research literature, and analyses complex engineering problems
reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering
sciences.

Competency Performance Indicators

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
3
2.1 Demonstrate an ability to identify 2.1.1 Articulate problem statements and identify objectives
and formulate complex engineering 2.1.2 Identify engineering systems, variables, and parameters to solve
problem the problems
2.1.3 Identify the mathematical, engineering and other relevant
knowledge that applies to a given problem
2.2 Demonstrate an ability to formulate 2.2.1 Reframe complex problems into interconnected sub-problems
a solution plan and methodology for an 2.2.2 Identify, assemble and evaluate information and resources.
engineering problem 2.2.3 Identify existing processes/solution methods for solving the
problem, including forming justified approximations and assumptions
2.2.4 Compare and contrast alternative solution processes to select the
best process.
2.3 Demonstrate an ability to formulate 2.3.1 Combine scientific principles and engineering concepts to
and interpret a model formulate model/s (mathematical or otherwise) of a system or process
that is appropriate in terms of applicability and required accuracy.
2.3.2 Identify assumptions (mathematical and physical) necessary to
allow modeling of a system at the level of accuracy required.
2.4 Demonstrate an ability to execute a 2.4.1 Apply engineering mathematics and computations to solve
solution process and analyze results mathematical models
2.4.2 Produce and validate results through skillful use of contemporary
engineering tools and models
2.4.3 Identify sources of error in the solution process, and limitations of
the solution.
2.4.4 Extract desired understanding and conclusions consistent with
objectives and limitations of the analysis

3: Design/Development of Solutions: Design solutions for complex engineering problems and design system
components or processes that meet the specified needs with appropriate consideration for public health and safety,
and cultural, societal, and environmental considerations.

Competency Performance Indicators


3.1 Demonstrate an ability to define a 3.1.1 Recognize that need analysis is key to good problem definition
complex/ open-ended problem in 3.1.2 Elicit and document, engineering requirements from
engineering terms stakeholders
3.1.3 Synthesize engineering requirements from a review of the state-
of-the-art
3.1.4 Extract engineering requirements from relevant engineering
Codes and Standards such as, DCA, FDA, BIS, ISO and ASTM.
3.1.5 Explore and synthesize engineering requirements considering
health, safety risks, environmental, cultural and societal issues
3.1.6 Determine design objectives, functional requirements and arrive
at specifications
3.2 Demonstrate an ability to generate a 3.2.1 Apply formal idea generation tools to develop multiple
diverse set of alternative design engineering design solutions
solutions 3.2.2 Build models/prototypes to develop a diverse set of design
solutions
3.2.3 Identify suitable criteria for the evaluation of alternate design
solutions

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
4
3.3 Demonstrate an ability to select an 3.3.1 Apply formal decision-making tools to select optimal engineering
optimal design scheme for further design solutions for further development
development 3.3.2 Consult with domain experts and stakeholders to select candidate
engineering design solution for further development
3.4 Demonstrate an ability to advance an 3.4.1 Refine a conceptual design into a detailed design within the
engineering design to defined end state existing constraints (of the resources)
3.4.2 Generate information through appropriate tests to improve or
revise the design

PO 4: Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to provide
valid conclusions.
Competency Performance Indicators
4.1 Demonstrate an ability to conduct 4.1.1 Define a problem, its scope and importance for purposes of
investigations of technical issues investigation
consistent with their level of knowledge 4.1.2 Examine the relevant methods, tools and techniques of experiment
and understanding design, system calibration, data acquisition, analysis and presentation
4.1.3 Apply appropriate instrumentation and/or software tools to make
measurements of physical quantities
4.1.4 Establish a relationship between measured data and underlying
physical principles.

PO 5: Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering
and IT tools including prediction and modeling to complex engineering activities with an understanding of the
limitations.

Competency Performance Indicators


5.1 Demonstrate an ability to identify/ 5.1.1 Identify modern engineering tools such as computer-aided
create modern engineering tools, drafting, modeling and analysis; techniques and resources for
techniques and resources engineering activities
5.1.2 Create/adapt/modify/extend tools and techniques to solve
engineering problems

5.2 Demonstrate an ability to select and 5.2.1 Identify the strengths and limitations of tools for (i) acquiring
apply discipline-specific tools, information, (ii) modeling and simulating, (iii) monitoring system
techniques and resources performance, and (iv) creating engineering designs.
5.2.2 Demonstrate proficiency in using discipline-specific tools

5.3 Demonstrate an ability to evaluate 5.3.1 Discuss limitations and validate tools, techniques and resources
the suitability and limitations of tools 5.3.2 Verify the credibility of results from tool use with reference to the
used to solve an engineering problem accuracy and limitations, and the assumptions inherent in their use.

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
5
PO 6: The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal,
health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering
practice.

Competency Performance Indicators


6.1 Demonstrate an ability to describe 6.1.1 Identify and describe various engineering roles; particularly as
engineering roles in a broader context, pertains to protection of the public and public interest at the global,
e.g. pertaining to the environment, regional and local level
health, safety, legal and public welfare

6.2 Demonstrate an understanding of 6.2.1 Interpret legislation, regulations, codes, and standards relevant to
professional engineering regulations, your discipline and explain its contribution to the protection of the
legislation and standards public

PO 7: Environment and sustainability: Understand the impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate the knowledge of, and the need for sustainable development.

Competency Performance Indicators


7.1 Demonstrate an understanding of the 7.1.1 Identify risks/impacts in the life-cycle of an engineering product
impact of engineering and industrial or activity
practices on social, environmental and in 7.1.2 Understand the relationship between the technical, socio-
economic contexts economic and environmental dimensions of sustainability

7.2 Demonstrate an ability to apply 7.2.1 Describe management techniques for sustainable development
principles of sustainable design and 7.2.2 Apply principles of preventive engineering and sustainable
development development to an engineering activity or product relevant to the
discipline

PO 8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.

Competency Performance Indicators


8.1 Demonstrate an ability to recognize 8.1.1 Identify situations of unethical professional conduct and propose
ethical dilemmas ethical alternatives
8.2 Demonstrate an ability to apply the 8.2.1 Identify tenets of the BMES professional code of ethics.
Code of Ethics 8.2.2 Examine and apply moral & ethical principles to known
case studies

PO 9: Individual and team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.

Competency Performance Indicators

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
6
9.1 Demonstrate an ability to form a 9.1.1 Recognize a variety of working and learning preferences;
team and define a role for each member appreciate the value of diversity on a team
9.1.2 Implement the norms of practice (e.g. rules, roles, charters,
agendas, etc.) of effective team work, to accomplish a goal.
9.2 Demonstrate effective individual and 9.2.1 Demonstrate effective communication, problem-solving, conflict
team operations-- communication, resolution and leadership skills
problem-solving, conflict resolution and 9.2.2 Treat other team members respectfully
leadership skills 9.2.3 Listen to other members
9.2.4 Maintain composure in difficult situations

9.3 Demonstrate success in a team-based 9.3.1 Present results as a team, with smooth integration of contributions
project from all individual efforts

PO 10: Communication: Communicate effectively on complex engineering activities with the engineering
community and with the society at large, such as being able to comprehend and write effective reports and design
documentation, make effective presentations, and give and receive clear instructions

Competency Performance Indicators


10.1 Demonstrate an ability to 10.1.1 Read, understand and interpret technical and non-technical
comprehend technical literature and information
document project work 10.1.2 Produce clear, well-constructed, and well-supported written
engineering documents
10.1.3 Create flow in a document or presentation - a logical progression
of ideas so that the main point is clear.
10.2 Demonstrate competence in 10.2.1 Listen to and comprehend information, instructions, and
listening, speaking, and presentation viewpoints of others
10.2.2 Deliver effective oral presentations to technical and non-
technical audiences
10.3 Demonstrate the ability to integrate 10.3.1 Create engineering-standard figures, reports and drawings to
different modes of communication complement writing and presentations
10.3.2 Use a variety of media effectively to convey a message in a
document or a presentation

PO 11: Project management and finance: Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s work, as a member and leader in a team, to manage projects and
in multidisciplinary environments.

Competency Performance Indicators


11.1 Demonstrate an ability to evaluate 11.1.1 Describe various economic and financial costs/benefits of an
the economic and financial performance engineering activity
of an engineering activity 11.1.2 Analyze different forms of financial statements to evaluate the
financial status of an engineering project
11.2 Demonstrate an ability to compare 11.2.1 Analyze and select the most appropriate proposal based on
and contrast the costs/benefits of economic and financial considerations.
alternate proposals for an engineering
activity

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
7
11.3 Demonstrate an ability to 11.3.1 Identify the tasks required to complete an engineering activity,
plan/manage an engineering activity and the resources required to complete the tasks.
within time and budget constraints 11.3.2 Use project management tools to schedule an engineering
project, so it is completed on time and on budget.

PO 12: Life-long learning: Recognize the need for, and have the preparation and ability to engage in independent
and life-long learning in the broadest context of technological change.

Competency Performance Indicators


12.1 Demonstrate an ability to identify 12.1.1 Describe the rationale for the requirement for continuing
gaps in knowledge and a strategy to professional development
close these gaps 12.1.2 Identify deficiencies or gaps in knowledge and demonstrate an
ability to source information to close this gap
12.2 Demonstrate an ability to identify 12.2.1 Identify historic points of technological advance in engineering
changing trends in engineering that required practitioners to seek education in order to stay current
knowledge and practice 12.2.2 Recognize the need and be able to clearly explain why it is vitally
important to keep current regarding new developments in your field
12.3 Demonstrate an ability to identify 12.3.1 Source and comprehend technical literature and other credible
and access sources for new information sources of information
12.3.2 Analyze sourced technical and popular information for
feasibility, viability, sustainability, etc.

INSTRUCTIONS TO THE STUDENTS

1) Students should come fully prepared to the laboratory for the experiments to be performed. He
should write down/read beforehand the objective of the experiment, list of test and measuring
equipment required, theory of the experiments and observation table.
2) Students should read and observe all the precautions to be taken during the experiment. Some of
the precautions include the following:
a) Make sure to create a folder with your student ID and save all your work in the same.
b) Ensure all programs / work are stored properly.
c) Do not change any defaults like wallpapers, location of folder that are not yours or system files.
d) Make sure to take a screenshot of the correct outputs.
3) After the experiment is over, shut down the notebook session, computers, fans, lights, etc.
4) Submit your practical file to the instructor of that day on the next turn and get your work checked
by him/her.

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
8
S. No. Date of Name of the Experiment Page Date of Remark and
Experiment No. submission Sign.
1 Creating Class, Method and 10
Object in Python

Creating OOP Structure for 14


2 Patients
Characteristics of OOP 18
3 Encapsulation, Inheritance,
Polymorphism in Python
4 Introduction to MATLAB 22
Reading and plotting Histogram of 26
5 grey images in MATLAB
SIMULINK Modelling and 29
6 Creating GUI in MATLAB

Course Outcomes

CO1 To understand the basic concepts of OOPS and various programming platforms.
CO2 To get acquainted with basic Python and MATLAB programming.
CO3 To apply the concepts of OOPs in Python.
CO4 To apply Python programming and MATLAB for solving standard engineering
problems.
CO5 To evaluate and compare the performance of different existing platforms.

S.NO Experiment Details CO PO


1 Creating Class, Method and Object in Python CO1 1,3
2 Creating OOP structure for Patients CO1 1,3
Characteristics of OOP Encapsulation, Inheritance, CO1 1,3,4
3
Polymorphism in Python
4 Introduction to MATLAB CO4 2,4
5 Reading and plotting Histogram of grey images in MATLAB CO2 2,4
6 Simulink Modelling and Creating GUI in MATLAB. CO5 2,4, 5

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
9
SHRI G.S.INSTITUTE OF TECHNOLOGY AND SCIENCE INDORE
DEPARTMENT OF BIOMEDICAL ENGINEERING

Programming Tools & Techniques

Session: - ……………….. Date:-………………….


Roll No:-…………………
Name of the Students:-………………….

Remark if any…………………

Signature of Professor

● EXPERIMENT NO. 1
Aim: Creating Class, Method and Object in Python.

Objectives: To learn the basic principles Object Oriented Programming (OOP) applied in Python
Language.

Requirements: Computer – Laptop or Desktop installed with Python and Jupyter Notebook Package.

Theory: Object-oriented programming is a programming paradigm that provides a means of structuring


programs so that properties and behaviours are bundled into individual objects.

For instance, an object could represent a person with properties like a name, age, and address and
behaviours such as walking, talking, breathing, and running. Or it could represent an email with properties
like a recipient list, subject, and body and behaviours like adding attachments and sending.
Put another way, object-oriented programming is an approach for modelling concrete, real-world
things, like cars, as well as relations between things, like hospitals and patients, students and teachers, and
so on. OOP models real-world entities as software objects that have some data associated with them and
can perform certain functions.
Another common programming paradigm is procedural programming, which structures a program
like a recipe in that it provides a set of steps, in the form of functions and code blocks, that flow
sequentially in order to complete a task.
The key takeaway is that objects are at the centre of object-oriented programming in Python, not
only representing the data, as in procedural programming, but in the overall structure of the program as
well.
Primitive data structures—like numbers, strings, and lists—are designed to represent simple pieces
of information, such as the cost of an apple, the name of a poem, or your favourite colours, respectively.
What if you want to represent something more complex?
For example, let’s say you want to track patients visiting a doctors clinic. You need to store some
basic information about each patient, such as their patient ID, visit date, name, gender, date of birth,
address, contact number, weight, body temperature, blood pressure, SpO2 level, and heart rate.

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
10
Classes are used to create user-defined data structures. Classes define functions called methods,
which identify the behaviours and actions that an object created from the class can perform with its data.
A class is a blueprint for how something should be defined. It doesn’t actually contain any data. While
the class is the blueprint, an instance is an object that is built from a class and contains real data.

The properties that all objects must have are defined in a method called .__init__(). Every time a
new object is created, .__init__() sets the initial state of the object by assigning the values of the object’s
properties. That is, .__init__() initializes each new instance of the class.
You can give .__init__() any number of parameters, but the first parameter will always be a
variable called self. When a new class instance is created, the instance is automatically passed to the self
parameter in .__init__() so that new attributes can be defined on the object.
Attributes created in .__init__() are called instance attributes. An instance attribute’s value is
specific to a particular instance of the class. All patient objects have a name and an age, but the values for
the name and age attributes will vary depending on the patient instance.
On the other hand, class attributes are attributes that have the same value for all class instances.
You can define a class attribute by assigning a value to a variable name outside of .__init__().
Class attributes are defined directly beneath the first line of the class name. They must always be
assigned an initial value. When an instance of the class is created, class attributes are automatically
created and assigned to their initial values.
Use class attributes to define properties that should have the same value for every class instance.
Use instance attributes for properties that vary from one instance to another.
Creating a new object from a class is called instantiating an object. You can instantiate a new
patient object by typing the name of the class, followed by opening and closing parentheses.
In order to see what gets printed, you can define a special instance method called .__str__().

Procedure:
1. Install and initiate a Jupyter Notebook.
2. Make small python snippets:
2.1 Print “Hello World!”
2.2 Print the number 5
2.3 Print “*” in a triangle, inverted triangle and diamond shape of max length 5 with spaces in
between.
2.4 Make a python program for a basic calculator for 2 numbers and 1 function as input.
3. Make a list L1=[1, ‘Apple’, ‘Cat’, 3.14186]
4. Make a function called “foo” that does nothing.
5. Define a class called Book..
6. Add Class Attribute Library = “Departmental Library, Bio-Medical Engineering”
7. Add Instance Attributes like Book ID, Author, Student ID, Check out Date, Return Date.
8. Initiate the following book check-out instances:
B01032022001 = [“001”, “Ruth”, “0108BM2022010”, “11 May 2022”, “10 June 2022”];
B01032022002 = [“002”, “Holmes”, “0108BM2022010”, “19 May 2022”, “10 July 2022”];
9. Add a method ‘Duration’ to calculate the number of days the book was checked out. Check in and
checkout times are noon.
Result/conclusion:

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
11
B.Tech. (Biomedical Engineering), SGSITS
Programming Tools & Techniques
12
Q1. What is class and object?

Q2. What are methods?

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
13
SHRI G.S.INSTITUTE OF TECHNOLOGY AND SCIENCE INDORE
DEPARTMENT OF BIOMEDICAL ENGINEERING

Programming Tools & Techniques

Session: - ……………….. Date:-………………….


Roll No:-…………………
Name of the Students:-………………….

Remark if any…………………

Signature of Professor

● EXPERIMENT NO. 2
Aim: Creating OOP structure for Patients

Objectives: To apply basic principles Object Oriented Programming (OOP) in Python Language.

Requirements: Computer – Laptop or Desktop installed with Python and Jupyter Notebook Package.

Theory: Build the Object Oriented structure for Patients visiting a Clinic. You need to store some basic
information about each patient, such as their patientid, visit date, name, gender, date of birth, address,
contact number, weight, body temperature, blood pressure, SpO2 level, and heart rate.

Procedure:
10. Define a class called Patient.
11. Add Class Attribute Doctor = “Dr. AN”
12. Add Instance Attributes like patientid, visit date, name, gender, weight, body temperature, blood
pressure.
13. Initiate the following patients:
P01092022001 = [“001”, “01Sep2022”, “Amey”, M, “60kg”, 98.2, 80/120];
P01092022002 = [“002”, “01Sep2022”, “Naksh”, M, “20kg”, 97.2, 80/120];
P01092022003 = [“003”, “01Sep2022”, “Raju”, M, “40kg”, 98.1, 86/110];
P01092022004 = [“004”, “01Sep2022”, “Pari”, F, “10kg”, 97.4, 82/125];
P01092022005 = [“005”, “01Sep2022”, “Simi”, F, “40kg”, 97.6, 85/130];
14. Add instance methods like Patient Information and Vitals
15. Replace Patient Information to __str__ method

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
14
Result/conclusion:

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
15
B.Tech. (Biomedical Engineering), SGSITS
Programming Tools & Techniques
16
Q1. What happens if self is not defined for the initialization method?

Q2. What are class attributes and instance attributes?

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
17
SHRI G.S.INSTITUTE OF TECHNOLOGY AND SCIENCE INDORE
DEPARTMENT OF BIOMEDICAL ENGINEERING

Programming Tools & Techniques

Session: - ……………….. Date:-………………….


Roll No:-…………………
Name of the Students:-………………….

Remark if any…………………

Signature of Professor

● EXPERIMENT NO. 3
Aim: Characteristics of OOP Encapsulation, Inheritance, Polymorphism in Python.

Objectives: To learn the basic principles Object Oriented Programming (OOP) applied in Python
Language.

Requirements: Computer – Laptop or Desktop installed with Python and Jupyter Notebook Package.

Theory: We have built a basic structure, now using OOP characteristics lets add some versatility to our
program.

Procedure:
16. Patient Health Information (PHI) is a privacy matter. In order for the clinic to be compliant with
the PHI laws, we need to make Patient Name private, thereby adding a little anonymity to the data.
This is done by encapsulation.
17. In order to generalize our program more we need to build classes based on the patient age group:
Pediatric (0-12yo), Teen(12-18yo), Adult (18-60yo) and Geriatric(60-100yo). Most information
that is to be collected for all these age based groups will still be the same. We will use inheritance
to form these new patient classes.
18. Generally clinics are used to diagnose and treat basic symptoms. We will first add dict mapping
basic symptoms for patient class.
Symptom={1:Cold, 2: Cough, 3: Fever, 4: Body Ache, 5: Chills}
19. Similarly there can be certain diagnostic tests that are age and pre-condition based. Using
polymorphism we will allow for more attributes in symptoms.
Pediatrics will mostly need tracking for Vaccines and BMI Normalcy
Teenagers will mostly require tracking for Dermatology conditions and OB GYN check-ups.
Adults will mostly require tracking for Lipids, Triglycerides, Glucose and Thyroid
Old patients will mostly require tracking for Joint Pains and Neurological Health.

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
18
Result/conclusion:

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
19
B.Tech. (Biomedical Engineering), SGSITS
Programming Tools & Techniques
20
Q1. Define Encapsulation?

Q2. Define Inheritance?

Q3. Define Polymorphism?

Q4. Define Abstraction?

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
21
SHRI G.S.INSTITUTE OF TECHNOLOGY AND SCIENCE INDORE
DEPARTMENT OF BIOMEDICAL ENGINEERING

Programming Tools & Techniques

Session: - ……………….. Date:-………………….


Roll No:-…………………
Name of the Students:-………………….

Remark if any…………………

Signature of Professor

● EXPERIMENT NO. 4
Aim: Introduction to MATLAB.

Objectives: To learn the basic principles of MATLAB.

Requirements: Computer – Laptop or Desktop installed with MATLAB.

Theory: Following the basic introduction in class, we know that MATLAB interface has windows for
Current Directory, Workspace, Command History, Editor and if required, figure windows. We can move
these around within or outside the interface to suit our customization. We can also choose to show some
and not other windows as we please.
Next, we will write small snippets to explore various functionalities of MATLAB.

Procedure:
20. Write a small program to calculate pi from fraction and display output to number of decimal places
as chosen by the user.
21. Write a small program to draw a circle and show output in the figure window.
22. Find if the number input by the user is prime or not and print out the result.
23. Write a program for line for x equidistant between 1 and 20, distance as chosen by the user and y
as 5.

Result/conclusion:

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
22
B.Tech. (Biomedical Engineering), SGSITS
Programming Tools & Techniques
23
B.Tech. (Biomedical Engineering), SGSITS
Programming Tools & Techniques
24
Q1. Does MATLAB understand mathematical terms like pi, e, etc.?

Q2. What does normalize mean?

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
25
SHRI G.S.INSTITUTE OF TECHNOLOGY AND SCIENCE INDORE
DEPARTMENT OF BIOMEDICAL ENGINEERING

Programming Tools & Techniques

Session: - ……………….. Date:-………………….


Roll No:-…………………
Name of the Students:-………………….

Remark if any…………………

Signature of Professor

● EXPERIMENT NO. 5
Aim: Reading and plotting Histogram of grey images in MATLAB

Objectives: To apply basic principles of MATLAB and present data.

Requirements: Computer – Laptop or Desktop installed with MATLAB.

Theory: Most radiology images are grayscale, so it is important to be able to understand them and extract
relevant information from them. One such information is the frequency at which a particular grey value
appears in the image. In this experiment we learn how we do this using a histogram and extract some
information.

Procedure:
24. Create a 1000 x 1000 matrix of random numbers between 1 and 300 and display histogram for
bins as 1-200; 200-250; 250-270; 270-290 and 290-300.
25. Normalize the matrix in 38 to values between 1 to 100.Read grayscale image
26. Plot histogram
27. Extract mean and median values
28. Normalize the image from 1-100
29. Modify the histogram bins to show as per 1 to 3 standard deviations.

Result/conclusion:

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
26
B.Tech. (Biomedical Engineering), SGSITS
Programming Tools & Techniques
27
Q1. What are histograms and bins?

Q2. What are standard deviations?

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
28
SHRI G.S.INSTITUTE OF TECHNOLOGY AND SCIENCE INDORE
DEPARTMENT OF BIOMEDICAL ENGINEERING

Programming Tools & Techniques

Session: - ……………….. Date:-………………….


Roll No:-…………………
Name of the Students:-………………….

Remark if any…………………

Signature of Professor

● EXPERIMENT NO. 6
Aim: SIMULINK Modelling and Creating GUI in MATLAB.

Objectives: To learn the basic principles of SIMULINK.

Requirements: Computer – Laptop or Desktop installed with MATLAB and SIMULINK.

Theory: Simulink is a simulation interface that allows the user to create customized simulations. Users
can either choose predefined functional blocks from different libraries or customize required blocks to
change behaviour. Users can also print the code to make major edits. Graphical User Interface (GUI) is
an application development environment that also allows users to convert ideas into an application.
Different elements with predefined behaviours can be added from the library and their characteristics can
be edited to link them with each other and functions.

Procedure:
30. Create a Simulink model to input a sine wave and display the same on the scope.
31. Create a Simulink model to input a sine wave but display a cosine wave.

32. Create a Simulink model to model the equation


33. Create a GUI to take inputs of two user defined integers and display their product.
34. Create a GUI to take two input signals as sine, sine squared, cosine, cosine squared signals; and
one function as sum, difference and product using radio buttons. Display
signal 1 function signal 2.

Result/conclusion:

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
29
B.Tech. (Biomedical Engineering), SGSITS
Programming Tools & Techniques
30
Q1. Make a SIMULINK model for y = mx + c ; where m and c can be edited by the user?

Q2. Make a GUI for the above SIMULINK model but output is a figure for user defined slope and
constant?

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
31
Institute Vision
A front-line institute in science and technology making significant
contributions to human resource development envisaging dynamic needs
of the society.

Institute Mission
To generate experts in science and technology akin to society for its
accelerated socioeconomic growth in professional and challenging
environment imparting human values.

Department Vision

To contribute for teaching excellence to generate human resource to


cater the needs of industries and hospitals for affordable healthcare through
research and innovation.

Department Mission
To bridge the engineering, science and healthcare sectors for
indigenous development and to impart community services for mass
healthcare through continuous research.

B.Tech. (Biomedical Engineering), SGSITS


Programming Tools & Techniques
32

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy