Tutorial: Creating a Real-Time Application

This tutorial teaches you how to create a basic real-time application using the Real-Time Module. The real-time application you learn about consists of two VIs: one that runs on the RT target and one that runs on the host computer. The VI on the RT target generates data from the RT target and streams the data to the VI on the host computer. The VI on the host computer reads the data and displays it in a waveform graph.

This tutorial starts from a blank VI in order to provide a comprehensive learning experience. If you prefer to learn by modifying a working application, there are several templates and sample projects available to you. To access these templates, select Create Project from the LabVIEW Getting Started window to display the Create Project dialog box.

Before You Get Started

Verify that you can discover your RT target on the network and that it has software installed. Refer to the Remote Systems topic in the Measurement & Automation Explorer Help for more information about discovering RT targets and installing software. To open the Measurement & Automation Explorer Help, select Help»MAX Help from NI MAX.

Tutorial Contents

Part 1: Generating Data on the RT Target
Learn how to create a producer loop that generates data on the RT target.

Part 2: Processing Data on the RT Target
Learn how to create a consumer loop that processes data on the RT target, and how to transfer data deterministically from the producer loop to the consumer loop.

Part 3: Stopping Multiple Loops Simultaneously
Learn how to use a network-published shared variable to create a means of stopping the producer loop and the consumer loop simultaneously.

Part 4: Building the User Interface
Learn how to create a basic user interface on the host computer, and how to stop the loops running on the RT target using the UI you create.

Part 5: Sending RT Data to the Host Computer
Learn how to use network streams to send data from the RT target to the host computer.

Part 6: Displaying RT Data on the User Interface
Learn how to use network streams to receive RT target data on the host computer, and how to display the data on the user interface.

Related Documentation
Learn about relevant concepts not covered in this tutorial.

WAS THIS ARTICLE HELPFUL?

Not Helpful