When plug-ins load and run in FlexLogger, the application’s compiled data engine and the compiled plug-ins prevent interactive debugging with LabVIEW. The Plug-in Environment Simulator provides a simplified, test-specific environment that allows developers to run and debug plug-ins from the source G code.

The Plug-in Environment Simulator installs to %ProgramFiles%\National Instruments\LabVIEW <version>\resource\FlexLogger\SDK\Plugin Environment Simulator.

Note The Plug-in Environment Simulator does not support digital channels.
To enable interactive debugging of Plug-in source code, the Simulator is provided as a VI:

To debug a plug-in, open and run Plugin Environment Simulator VI. When the Simulator starts running, it prompts the user for the Plug-in class to debug. The following is the Simulator running an unmodified Produce data for FlexLogger plug-in:

The Configure Plugin Parameters button allows users to update plug-in parameters:

Similarly, the Configure Channel Parameters allows developer to update channel parameters:

Plug-ins following the Consume setpoint data template do not write any data to FlexLogger, so the Channel Data chart shows the current setpoint values. The Update Setpoint Channels button provides the input information needed to write the correct values to an external system. The following shows setting the setpoint for an unmodified setpoint consumer plug-in example:

When using waveform channel inputs with the Plug-in Simulator, it is first necessary to pick channel(s) that are mapped to the parameters. This mimics the behavior when interacting with the application. In the Simulator, any designated name will receive a constant value waveform. Mapped channels are configured through the Configure Device Parameters dialog:



The constant value can be changed using the Change Setpoint option: