LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the...

26
LabVIEW LabVIEW Applications for the Applications for the Undergraduate Physiology Lab Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. Joseph R. Blandino, Ph. D. James Madison University James Madison University NIWeek NIWeek Aug, 16, 2002 Aug, 16, 2002 Austin, TX Austin, TX

Transcript of LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the...

Page 1: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

LabVIEW LabVIEW Applications for the Applications for the Undergraduate Physiology LabUndergraduate Physiology Lab

Joseph R. Blandino, Ph. D.Joseph R. Blandino, Ph. D.James Madison UniversityJames Madison University

NIWeek NIWeek Aug, 16, 2002Aug, 16, 2002Austin, TXAustin, TX

Page 2: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

AcknowledgementAcknowledgement

nnKimberly PooleKimberly PoolennW.C. SheetsW.C. Sheets

Page 3: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

OverviewOverviewnn Introduction/MotivationIntroduction/Motivationnn InfrastructureInfrastructurenn Development ProcessDevelopment Processnn ApplicationsApplications

–– ReflexReflex–– Muscle TwitchMuscle Twitch–– ECGECG–– Enzyme ReactionsEnzyme Reactions

nn SummarySummary

Page 4: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Introduction/MotivationIntroduction/Motivation

nn Why bother with NI?Why bother with NI?

Handy Storage Compartments

Wheels for portability

Sturdy Construction

Proven analog electronics

Refillable ink wells(color compatible)

Un-corruptable storage media

Page 5: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Introduction/MotivationIntroduction/Motivation

nnRelocation of Physiology Labs.Relocation of Physiology Labs.nnHiring of new faculty.Hiring of new faculty.nnNeed to continue using existing Need to continue using existing

transducers (some designed to interface transducers (some designed to interface to MAC).to MAC).

nnDesire to purchase offDesire to purchase off--thethe--shelf UL shelf UL listed amplifiers, but not proprietary listed amplifiers, but not proprietary software.software.

Page 6: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

InfrastructureInfrastructure

nn NI PCINI PCI--MIO 16MIO 16--E4E4nn NI BNC 2090 NI BNC 2090

Terminal BlockTerminal Blocknn Tektronix CPS 250 Tektronix CPS 250 nn AM Systems Model AM Systems Model

21002100nn CB Sciences ETHCB Sciences ETH--

255 Bridge/Bio 255 Bridge/Bio AmplifierAmplifier Lab has eight stations

Page 7: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Development ProcessDevelopment Process

nn LabVIEWLabVIEW programmers made available programmers made available to work with Biology Faculty.to work with Biology Faculty.

nnTechnicians made available to develop Technicians made available to develop PC interface for former MAC systems.PC interface for former MAC systems.

nn InIn--house training shorthouse training short--course offered.course offered.nn “Pitched” “Pitched” Physiographs Physiographs (no turning (no turning

back!).back!).

Page 8: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Development ProcessDevelopment Process

nn LabVIEW LabVIEW Programming is fun!Programming is fun!–– Decide upDecide up--front what data analysis front what data analysis

students must perform.students must perform.–– Do you want all Do you want all VIs VIs to have the same lookto have the same look--

andand--feel?feel?–– Start with simple building blocks of code Start with simple building blocks of code

and add features.and add features.

Page 9: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Development ProcessDevelopment Process

nnExample: Example: SpirometerSpirometer Interface.Interface.–– Record the signal.Record the signal.

nn Want ability to adjust offset before recording.Want ability to adjust offset before recording.nn Each Each spirometer spirometer has unique scale factor.has unique scale factor.nn Want amplitude vs. time display.Want amplitude vs. time display.

–– Write data to spreadsheet for postWrite data to spreadsheet for post--processing by students.processing by students.

Page 10: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,
Page 11: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,
Page 12: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

ApplicationsApplicationsnn Muscle TwitchMuscle Twitch

–– Force Measurement Force Measurement

nn ReflexReflex–– Simple Electronic Simple Electronic GoniometerGoniometer..

nn ECGECG–– Amplifier interface.Amplifier interface.

nn Enzyme ReactionEnzyme Reaction–– Interface for Interface for Spectronic Spectronic 20 Spectrophotometer.20 Spectrophotometer.

Page 13: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Applications: ReflexApplications: Reflex

nn SuppliesSupplies–– Impact Hammer (for Impact Hammer (for

triggering)triggering)–– PotentiometerPotentiometer–– Straps (for Straps (for

attachment)attachment)

Page 14: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Applications: ReflexApplications: Reflex

nn Potentiometer Potentiometer requires external requires external power supply (5V)power supply (5V)

Tektronix CPS250Tektronix CPS250

Page 15: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,
Page 16: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Applications: Muscle TwitchApplications: Muscle Twitch

nn SuppliesSupplies–– PhysiogripPhysiogrip–– Power SupplyPower Supply–– Flat ElectrodeFlat Electrode–– Electrode probeElectrode probe–– Electrically Electrically

conductive gelconductive gel

Page 17: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Application: Muscle TwitchApplication: Muscle Twitch

Page 18: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,
Page 19: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Applications: ECGApplications: ECG

nn SuppliesSupplies–– Electrode Electrode

leads/interfaceleads/interface–– Electrodes “PreElectrodes “Pre--

gelled”gelled”–– Electrically Electrically

Conductive GelConductive Gel–– Pulse Transducer Pulse Transducer

(optional)(optional)

Page 20: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Applications:ECGApplications:ECG

nn Use Plenty of Gel!Use Plenty of Gel!nn Give students Give students

guidance on guidance on electrode placementelectrode placement

Page 21: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,
Page 22: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Applications: Enzyme ReactionApplications: Enzyme Reaction

nn SuppliesSupplies–– Spectronic Spectronic 2020–– CuvettesCuvettes–– “Pigtail” Connector “Pigtail” Connector –– DeionizedDeionized waterwater–– Potatoes Potatoes –– CatecholCatechol–– BlenderBlender–– StrainerStrainer–– Assorted glassware and Assorted glassware and

cuvettecuvette racksracks

Page 23: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

Applications: Enzyme ReactionApplications: Enzyme Reaction

nn 00--1V output 1V output corresponds to 0corresponds to 0--100% Transmission.100% Transmission.

“Pigtail” Connector

Page 24: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,
Page 25: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

%T = 0.6936e-7E-05t

R2 = 0.986

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

1.1

0 5000 10000 15000 20000 25000

Time (seconds)

% T

rans

mitt

ance

Page 26: LabVIEW Applications for the Undergraduate Physiology Lab · LabVIEW Applications for the Undergraduate Physiology Lab Joseph R. Blandino, Ph. D. James Madison University NIWeek Aug,

SummarySummary

nnApplications shown provide a starting Applications shown provide a starting point for modernizing undergraduate point for modernizing undergraduate physiology lab.physiology lab.

nnStart simple, add features/analysis tools Start simple, add features/analysis tools as needed.as needed.

nnUse common program structures Use common program structures whenever possible whenever possible --make life easy on make life easy on faculty and technicians.faculty and technicians.