Workers for LabVIEW
HomeDownload Follow ProjectAbout
  • Welcome to Workers for LabVIEW
  • What's New in v5.0
    • Upgrading to v5.0
    • New Features
      • Development Tools
      • Functional Changes
      • API Changes
      • Example Projects
      • Change Log
  • Fundamental Concepts
    • What is a Worker?
    • Important Terms
    • The Workers Main VI
      • Default Framework Cases
    • subWorker Types
    • Initialization Sequence
    • Shutdown Sequence
    • Priority Queue
    • Launcher VIs
  • Worker APIs
    • Overview
    • Local Requests
      • Creating Local Requests
    • Public Requests
      • Creating Public Requests
    • Public Requests w/Reply
      • Creating Public Requests w/Reply
    • Public Responses
      • Creating Public Responses
      • Registering Public Responses
    • Case Labels
    • Deleting API Items
  • Workers Tools
    • Workers Tools Menu
      • Create/Add Worker
        • Removing Workers
        • Creating Worker Templates
        • Troubleshooting
      • Workers Debug Server
        • Workers Application Manager
          • Right click menu
        • Worker Message Logs
          • Right click menu
        • Settings
        • Troubleshooting
      • Worker Call-Chain Viewer
      • Worker User Library
        • Config File Editor
      • RT Worker Convert
      • Public API Builder
        • Public Requests
        • Public Requests w/Reply
        • Public Responses
        • Override MHL Cases
      • Create Launcher VI
      • Create Worker Base Class
      • Change Inheritance
      • MHL Case Viewer
      • Change Worker Properties
    • Quickdrop Shortcuts
      • Show Private Data (Ctrl+0)
      • Create MHL Case tool (Ctrl+9)
      • Go To MHL Case (Ctrl+8)
  • Getting Started
    • Creating your first application
    • Example Projects
  • Legal
    • Disclaimer
    • Licenses
Powered by GitBook
On this page
  • Workers Fundamentals
  • Continuous Measurement and Logging
  • DMM HAL Demo Project
  • Message Pump
  • TCP Server and Client
  1. Getting Started

Example Projects

Getting Started

PreviousCreating your first applicationNextDisclaimer

Last updated 1 year ago

Five Workers examples projects are provided to help demonstrate the various ways to use the Workers API VIs, how Workers can be both statically-linked or dynamically loaded, and how to create an abstracted Worker API that can be used to create HALs. You can access the Workers Example Projects from the .

Workers Fundamentals

Continuous Measurement and Logging

This example project was created to provide a side-by-side comparison with the original ‘Continuous Measurement and Logging’ sample project that ships with LabVIEW. It demonstrates how the same functionality is achieved using Workers as it is using the classic LabVIEW QMH template.

DMM HAL Demo Project

This example project uses a DMM (digital multimeter) HAL (hardware abstraction layer) to explain how to create an abstracted Public API for multiple Workers. The Public API is created in a Worker base class and the implementation (MHL cases) for the Public API are contained in three Workers that inherit from the Worker base class.

Basic knowledge of LVOOP is recommended to understand this sample project.

Message Pump

TCP Server and Client

The Workers Fundamentals sample project demonstrates the basic concepts of the framework and is the recommended starting project for developers who are new to the framework. The code in this example project is heavily commented. This project demonstrates the difference between Workers, and demonstrates how to use the four different type of VIs.

This project is part of the .

This project demonstrates the use of a Message Pump Worker. The Message Pump Worker is a dynamically loaded Worker that can be added to your projects through the tool. The Message Pump Worker sends a message periodically to a selected MHL case of the calling Worker. The pumped message is generated by the timeout event of a dedicated event structure.

This project is part of the .

This project demonstrates how to use the TCP Server and TCP Client Workers that are part of the . The TCP Server and Client Workers can be either statically-linked or dynamically loaded from another Worker. The TCP Server Worker can connect to multiple TCP Client Workers. String data is the data format shared between Server and Client. These Workers can be used to stream data between Workers applications running on a local network or on a NI real-time target.

statically-linked and dynamically loaded
Worker API
Worker User Library
Worker User Library
Worker User Library
Worker User Library
Workers tools menu
The Workers example projects