Process Method Timing
- Updated2025-11-25
- 2 minute(s) read
In the Initialize method, plug-ins which produce data or consume only setpoint data set the Timing Parameters that control how the Process method executes. If a plug-in reads waveform data from other FlexLogger channels, you should instead set the Resampling Parameters, which determine how input data will be resampled. Plug-ins should typically only use either the Set Plugin Timing VI or the Set Plugin Resampling VI in Initialize VI, but not both. In situations where the plug-in timing is not driven by the timing of the input data, you may want to use the Set Plugin Timing VI in addition to Set Plug-in Resampling VI.
| Timing Parameter | Timing Period (ms) required? | Description |
|---|---|---|
| Periodic | Yes | With a timing period of n, periodic timing ensures at least n milliseconds between runs of the Process method. |
| Immediate | No | Run Process without delay. This method is typically used when a blocking call inside the Process method controls timing. |
| On Data Ready | Optional | For use by plug-ins that read channel data from FlexLogger—such as
the Consume setpoint data from FlexLogger template. On Data
Ready blocks execution of Process until FlexLogger sends new channel data to the
plug-in. This parameter uses a timing period of n milliseconds as a time-out. After passing the time-out period, the plug-in executes Process without receiving new channel data from FlexLogger. If the time-out period is ≤0 ms, On Data Ready blocks execution of Process until FlexLogger sends new channel data to the plug-in. |
| Triggered | No | Not applicable for IO Plug-in development. |
| Resampling Parameter | Description |
|---|---|
| Resampling Mode | Determines how resampling of input waveforms will be done. In Minimum and Maximum mode the resampling rate is determined by the input channels. In Maximum mode any slower channels will be resampled to the rate of the fastest channel. In Custom mode resampling is done at a fixed rate specified by the Resampling Rate parameter. In Original Rate mode no resampling will be done. This mode should only be used if there is a single input channel. |
| Resampling Rate (Hz) | The rate to resample the data at if using Custom mode. |
| Drift Tolerance (seconds) | The amount of history to store in the plug-in waiting for time aligned data from different sources. A high number here increases the memory usage of the plug-in, a low number potentially causes issues with plug-ins which are not synchronized. |
| Block Size (seconds) | The minimum amount of overlapping data that should be present before the Process method is called. |