Presentation is loading. Please wait.

Presentation is loading. Please wait.

LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.

Similar presentations


Presentation on theme: "LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals."— Presentation transcript:

1 LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals

2 Data Flow Many code objects in LabVIEW generate data – Constants always put out one “constant” value – Read Sensor commands send out sensor values – Operations like “Divide” send out result values Data flows through wires Value = 75 Value = Sound Sensor Reading Value = Ultrasonic Sensor Reading divided by 2

3 Data Flow Data is used by commands and Structures Motor power set to 75 Motor power set to Sound Sensor value Motor power set to Sound Sensor value divided by 2

4 Data Flow Data is used by commands and Structures Repeats 8 times If Touch Sensor is Pressed, run this “True” pane code Repeats until Port C Rotations exceed 1800 degrees

5 Front Panel Data The Front Panel can provide and display data – Controls generate values that can be used in code – Indicators display values in different ways

6 Data Flow Every command in LabVIEW runs as soon as all its “incoming” data is ready The NXT Pink Wire is actually just a creative use of Data Flow to create sequences of commands that have to wait for one another

7 Data Flow: Parallelism Every command in LabVIEW runs as soon as all its “incoming” data is ready – This even lets multiple code strands run at once!

8 Controlling Program Flow Structures can control when commands run – Sequence Structures force groups of commands to run in a certain order

9 Controlling Program Flow Structures can control when commands run – Case Structures choose alternative sets of code to run, based on an input value

10 Controlling Program Flow Structures can control when commands run – For Loops repeat code a set number of times

11 Controlling Program Flow Structures can control when commands run – While Loops repeat code until a wired Stop condition is reached

12 Control Loops Control Loops are a strategic arrangement of a Case and a Loop – Repeats a decision quickly so it looks “continuous”

13 Shift Registers Shift Registers pass values across loop cycles – This allows values to “accumulate” or “count up”


Download ppt "LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals."

Similar presentations


Ads by Google