Presentation is loading. Please wait.

Presentation is loading. Please wait.

336540 Design of Bio-Medical Virtual Instrumentation Tutorial 1.

Similar presentations


Presentation on theme: "336540 Design of Bio-Medical Virtual Instrumentation Tutorial 1."— Presentation transcript:

1 336540 Design of Bio-Medical Virtual Instrumentation Tutorial 1

2 Course information Dr. Eugene Konyukhov: eugene@bm.technion.ac.il, BM room 342,eugene@bm.technion.ac.il Tel: 054-7891895 Tal Gilboa: talh@tx.technion.ac.il, Emerson building 6 th floor, Tel: 5103talh@tx.technion.ac.il Shir Paluch: shirp@tx.technion.ac.il, BM room 330, Tel: 4127shirp@tx.technion.ac.il Reception hours: By appointment Grading: 20% Homework (~5 HW assignments) 80% Project

3 Outline Navigating LabVIEW – Front panel window – Controls, Indicators and constants – Block diagram window – Data flow

4 LabVIEW Laboratory Virtual Instrumentation Engineering Workbench LabVIEW programs are called VIs (virtual instruments) LabVIEW VIs contain two main components: 1.The front panel window 2.The block diagram window LabVIEW – graphical programming environment which can be used to create applications with professional user interfaces

5 Front Panel The front panel window is the user interface for the VI

6 Run the VI If the arrow is broken it mean that we have an error in our program Run continuously Stop Pause Design buttons

7 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.

8 Controls palette View » Controls Palette or right-click the front panel workspace to display the Controls palette Use the Controls palette to place controls and indicators on the front panel

9 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

10 Block Diagram The Block Diagram window contains the graphical source code Terminal Constant

11 Functions palette View » Functions Palette or right-click the block diagram workspace to display the Functions palette Use the Functions palette to build the block diagram To display the Context Help window select Help » Show Context Help or press the keys

12 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

13 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

14 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?


Download ppt "336540 Design of Bio-Medical Virtual Instrumentation Tutorial 1."

Similar presentations


Ads by Google