Create Base Class

The Create Base Class tool allows you to create abstract base classes that contain a Common Cases.vi, which you can inherit your Workers from.

Options

Name of your new base class

Select a name for your new 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 base class from. By default every base class inherits from Worker.lvclass [Workers.lvlib].

Icon Header

A string for the header or your base class's icon. Here you can also select the background and text color of the icon's header.

Icon Preview

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

Parent folder of new base class folder

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

Common Cases.vi

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

The base class created by the tool contains a single VI: Common Cases.vi.

This case structure extends the MHL case structure of your Worker. For more information about how to use a Common Cases.vi, see the Common Base Class sample project.

Last updated