From the course: Learning LabVIEW

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Data flow programming

Data flow programming - LabVIEW Tutorial

From the course: Learning LabVIEW

Start my 1-month free trial

Data flow programming

- [Instructor] If you've written code before in a text-based programming language, like Python or C++, then you're used to an execution model known as control flow. When you run your program, the code is executed sequentially, line by line, from top to bottom. Sure, things like functions and if else statements can change the flow of execution to jump around between different sections of code, but in general, if I call function A on line one of my text-based program and then call function B on the very next line, I know that function A will always execute and finish before function B begins. That makes sense for a text-based language, but LabVIEW uses graphical programming. So it uses a different model of execution based on how things are wired together, called data flow. LabVIEW uses wires to pass data between nodes on the block diagram and the movement of data through the nodes determines the order in which they execute.…

Contents