1 / 13

LabVIEW Program and Data Flow Review

LabVIEW Program and Data Flow Review. LabVIEW Robotics Fundamentals. 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

Télécharger la présentation

LabVIEW Program and Data Flow Review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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 outone “constant” value • Read Sensor commandssend 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 • Indicatorsdisplay 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”

More Related