View
217
Download
1
Category
Tags:
Preview:
Citation preview
LabVIEW – 2 WindowsLabVIEW – 2 Windows
►Front Panel- User InterfaceFront Panel- User Interface
►Block Diagram- Programming Block Diagram- Programming ViewView
Front Panel – User InterfaceFront Panel – User Interface
►User can type in valuesUser can type in values►User can flip a switchUser can flip a switch► Instruments can record values such asInstruments can record values such as
TemperatureTemperature Heart RateHeart Rate Wave FormsWave Forms
Block Diagram Block Diagram
►IconsIcons on the Block Diagram represent on the Block Diagram represent examples of examples of programming codeprogramming code
Block DiagramBlock Diagram
What do we mean by What do we mean by Programming Code?Programming Code?
►Let’s look at two examplesLet’s look at two examples Binary CodeBinary Code HTML CodeHTML Code
Binary CodeBinary Code
►Code using two numbers 0 1Code using two numbers 0 1
►Click below for a Binary Code Click below for a Binary Code Encoder:Encoder:
Binary Code EncoderBinary Code Encoder
Example of HTML Code Example of HTML Code
The following is an example of Marquee The following is an example of Marquee HTML Code for a website.HTML Code for a website.
►The Code causes the text to scroll The Code causes the text to scroll across the screenacross the screen
►The Code is hidden from the userThe Code is hidden from the user
►Code ExampleCode Example
HTML Code RevealedHTML Code Revealed
LabVIEW Programming CodeLabVIEW Programming Code
►Block Diagrams in LabVIEW represent Block Diagrams in LabVIEW represent the hidden programming codethe hidden programming code
LabVIEW-LabVIEW-A Simple ExampleA Simple Example
►Let’s see both front panel and block Let’s see both front panel and block diagram for calculating the:diagram for calculating the: Area of a TriangleArea of a Triangle
Formula for Area of Triangle?Formula for Area of Triangle?
Formula for Area of Triangle?Formula for Area of Triangle?
► .5 x base x height.5 x base x height► .5* b*h.5* b*h
Wires transfer data among Wires transfer data among block diagram objectsblock diagram objects
WiresWires
LoopsLoops
►Loops can continue a cycle of input or Loops can continue a cycle of input or can cause input to stopcan cause input to stop
WHILE LoopWHILE Loop
► To run the VI until a condition occurs, To run the VI until a condition occurs, you can use a While Loopyou can use a While Loop
Recommended