336540 Design of Bio-Medical Virtual Instrumentation Tutorial 1 Course information Dr. Eugene Konyukhov: eugene@bm.technion.ac.il , BM room 342 , Tel: 054-7891895 Tal Gilboa: talh@tx.technion.ac.il , Emerson building 6th floor, Tel: 5103 Shir Paluch: shirp@tx.technion.ac.il , BM room 330, Tel: 4127 Reception hours: By appointment Grading: • 20% Homework (~5 HW assignments) • 80% Project Outline Navigating LabVIEW – Front panel window – Controls, Indicators and constants – Block diagram window – Data flow LabVIEW Laboratory Virtual Instrumentation Engineering Workbench LabVIEW – graphical programming environment which can be used to create applications with professional user interfaces • LabVIEW programs are called VIs (virtual instruments) • LabVIEW VIs contain two main components: 1. The front panel window 2. The block diagram window Front Panel • The front panel window is the user interface for the VI Run the VI If the arrow is broken it mean that we have an error in our program Run continuously Stop Pause Design buttons Controls Indicators and Constants Controls: • Controls are the interactive input terminals of the VI. They stimulate input devices and supply data to the block diagram. • Controls are: knobs, push buttons etc. Indicators: • Indicators are the interactive output terminals of the VI. They display data the block diagram acquires or generates. • Indicators are graphs, LEDs etc. Constants - values that the user doesn’t need to change or access. Controls palette Use the Controls palette to place controls and indicators on the front panel View » Controls Palette or right-click the front panel workspace to display the Controls palette Controls and Indicators Every control or indicator has a data type associated with is: • Numeric Controls and Indicators – represent numbers of various types • Boolean Controls and Indicators- represent data that has only two possible states • String Controls and Indicators – sequence of ASCII characters Block Diagram • The Block Diagram window contains the graphical source code Terminal Constant Functions palette Use the Functions palette to build the block diagram View » Functions Palette or right-click the block diagram workspace to display the Functions palette To display the Context Help window select Help » Show Context Help or press the <Ctrl-H> keys Exercise 1 • Create a VI which gets the height and base of a triangle from the user, computes the area of the triangle and presents it Exercise 2 Create a VI which: • Gets two numbers from the user • Sums, divides and multiplies them • subtracts 1 from one of the numbers • Presents all the results Data flow • LabVIEW follows a dataflow model for running VIs • A block diagram node executes when it receives all required inputs • • • • Which function executes first: Add or subtract? Which function executes first: Random number, subtract or add? Which function executes first: Random number, divide or add? Which function executes last: Random number, subtract or add?