Programming Principles

download Programming Principles

of 15

Transcript of Programming Principles

  • 8/4/2019 Programming Principles

    1/15

    Programming Principles

    Lets start from the beginning

  • 8/4/2019 Programming Principles

    2/15

    2

    Andy Milluzzi

    Rose-Hulman

  • 8/4/2019 Programming Principles

    3/15

    3

    What is LabVIEW?

    Graphical Programming Language

    Common Uses

    Digital Signal Processing Data Acquisition

    Control Systems

    Robotics Dataflow Programming

  • 8/4/2019 Programming Principles

    4/15

    4

    What is Dataflow Programming?

    What is sequential programming?

    Code executes in the order it is written

    Dataflow programming? Code executes as soon as it has valid arguments

    Highly parallel

  • 8/4/2019 Programming Principles

    5/15

    5

    Francesca Ramadori

    UF

  • 8/4/2019 Programming Principles

    6/15

    6

    Data Flow

    Block diagram execution Dependent on the flow of data

    Block diagram does NOT execute

    left to right

    Node executes when data is

    available to ALL input terminals Nodes supply data to all output

    terminals when done

    If the computer running this code had

    multiple processors, these two

    pieces of code could runindependently without additional

    coding

  • 8/4/2019 Programming Principles

    7/157

    Polymorphism Definition: a programming

    language feature that allows

    values of different data types to

    be handled using a uniform

    interface.

    In LabVIEW: the ability of VIsand functions to automatically

    adapt to accept input data of

    different data types

    i.e. Numeric Functions

    Useful when performing the sameoperation on different data types

  • 8/4/2019 Programming Principles

    8/158

    Julian Ferrer Rios

    ITESM

  • 8/4/2019 Programming Principles

    9/159

    Data Flow

    Question?:

    In C, C++ or Java, How does the instructions run?

    Answer: Sequential.`

  • 8/4/2019 Programming Principles

    10/1510

    Data Flow

    In Labview, the Data Flow is also sequential but

    is input dependant.

  • 8/4/2019 Programming Principles

    11/1511

    What runs first?

  • 8/4/2019 Programming Principles

    12/1512

    Kristen Heck

    Duke

  • 8/4/2019 Programming Principles

    13/15

    13

    Compiled graphical development environment

    Development time reduction of four to ten times

    Tools to acquire, analyze, and present your data

    What is LabVIEW?

    Laboratory Virtual Instrumentation Engineering Workbench

  • 8/4/2019 Programming Principles

    14/15

    14

    Polymorphism Definition: a programming

    language feature that allows

    values of different data types to

    be handled using a uniform

    interface.

    In LabVIEW: the ability of VIsand functions to automatically

    adapt to accept input data of

    different data types

    i.e. Numeric Functions

    Useful when performing the sameoperation on different data types

  • 8/4/2019 Programming Principles

    15/15

    15

    Data Flow

    Block diagram execution isdependent on the flow of data

    Block diagram does NOT execute

    left to right

    Node executes when data is

    available to ALL input terminals Nodes supply data to all output

    terminals when done

    If the computer running this code had

    multiple processors, these two

    pieces of code could runindependently without additional

    coding