From the course: Learning LabVIEW
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Local variables - LabVIEW Tutorial
From the course: Learning LabVIEW
Local variables
- [Instructor] One of the benefits of LabVIEW's graphical approach to programming is that you can easily see parallelism in your code. When the tasks within an application can be divided into sections of code that are independent of one another, LabVIEW will automatically run them in separate threads which enables the program to take advantage of multi-core processors to execute multiple tasks simultaneously in parallel. For a simple example, consider this program with two while loops. The loop on the left is generating a random value, representing a Celsius temperature measurement once per second, and the loop on the right is processing those values by converting them to Fahrenheit. I want these loops to run simultaneously, so that the loop on the right will process new data as soon as the left loop generates it. When I run this program, I can see the Celsius indicator changing, so I know the left generation loop is…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
While loops3m 42s
-
(Locked)
For loops3m 6s
-
(Locked)
Build an array with a for loop2m 11s
-
(Locked)
Process an array with a for loop2m 22s
-
(Locked)
Loop timing2m 53s
-
(Locked)
Local variables6m 18s
-
(Locked)
Shift registers2m 26s
-
(Locked)
Stacked shift registers2m 24s
-
(Locked)
Challenge: Moving average52s
-
(Locked)
Solution: Moving average2m 25s
-
-
-
-
-
-