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
  • Options
  • Name of your new Worker base class
  • Inherit from:
  • Icon Header
  • Icon Preview
  • Parent folder of new Worker base class folder
  • MHL Cases.vi
  1. Workers Tools
  2. Workers Tools Menu

Create Worker Base Class

Workers Tools Menu

PreviousCreate Launcher VINextChange Inheritance

Last updated 1 year ago

The Create Worker Base Class tool allows you to create Worker base classes that contain a common MHL Cases.vi. You can add common functionality to this class that can then be used by Workers that inherit from this class.

Options

Name of your new Worker base class

Select a name for the new Worker base class. The name you select should be suitable to be a filename.

Inherit from:

Select the class you want to directly inherit your new Worker base class from. By default every Worker base class inherits from Worker.lvclass [Workers.lvlib].

Icon Header

A string for the header of your Worker base class's icon. Here you can also select the background and text color of the icon's header. (This data is stored as a tag within the class's XML file).

Icon Preview

What the icon of your base class will look like, based on the header and text/background colors you choose.

Tip

Right clicking over the icon preview and selecting Copy header colors from class allows you to take the text/background icon colors from another Worker or Worker base class.

Parent folder of new Worker base class folder

When a new Worker base class is created, its class file is put in a folder with the same name as the Worker base class. The 'parent' folder is one level above the folder that is created for the new Worker base class.

MHL Cases.vi

The <Default> case of every Worker's MHL contains a MHL Cases.vi. This VI belongs to a class with a MHL Cases.vi that the Worker inherits from. You can add you own common MHL cases to extend the common functionality of a Worker's MHL by inheriting your Workers from a Worker base class.

A Worker base class created by this tool contains a single VI: MHL Cases.vi.

Create Worker Base Class tool
MHL Cases.vi