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

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…

Contents