Plug-ins have a special parameter type called Command. When you select this parameter, the plug-in will create a button in FlexLogger. Pressing the button in FlexLogger sends a notification to the plug-in. For example, use a Command parameter to create a Tare button for a scale plug-in.



When you press the Tare button in FlexLogger, the plug-in tares the scale.



In order to create a user-defined command in a plug-in, you must override the Handle Notification VI. Create an overriding VI by right-clicking the .lvclass file in the project and selecting New » VI for Override.

This VI has two input parameters:
  • Notification Type- a string input to match the name given to your plug-in command parameter
  • Payload- a string input that is empty when the notification comes from a command button, except for the built-in commands, Test Start and Test Stop. The Test Start and Test Stop commands return the time (in seconds) for the start or stop of a test. Use Notification Payload to Timestamp VI to decode the payload.


To create a special case for Test Start or Test Stop notifications, add these notification type names to the case structure and use Notification Payload to Timestamp VI (<vi.lib>\FlexLogger\SDK\PluginSDK.lvlibp\PEFClasses\SDK\Plugin\) to convert the payload to a timestamp.

Note that Handle Notification VI runs in a separate loop. If you want to share data with other VIs in the Plug-in class, use a Data Value Reference instead of directly changing the private class member variables.