LabVIEW – 2 Windows ► Front Panel- User Interface ► Block Diagram- Programming View
Front Panel – User Interface ► User can type in values ► User can flip a switch ► Instruments can record values such as Temperature Heart Rate Wave Forms
Block Diagram ► Icons on the Block Diagram represent examples of programming code
Block Diagram
What do we mean by Programming Code? ► Let’s look at two examples Binary Code HTML Code
Binary Code ► Code using two numbers 0 1 ► Click below for a Binary Code Encoder: Binary Code Encoder Binary Code Encoder Binary Code Encoder
Example of HTML Code The following is an example of Marquee HTML Code for a website. ► The Code causes the text to scroll across the screen ► The Code is hidden from the user ► Code Example Code Example Code Example
HTML Code Revealed
LabVIEW Programming Code ► Block Diagrams in LabVIEW represent the hidden programming code
LabVIEW- A Simple Example ► Let’s see both front panel and block diagram for calculating the: Area of a Triangle
Formula for Area of Triangle?
►.5 x base x height ►.5* b*h
Wires transfer data among block diagram objects
Wires
Loops ► Loops can continue a cycle of input or can cause input to stop
WHILE Loop ► To run the VI until a condition occurs, you can use a While Loop