Configuring the PLS Analysis block

  1. Load the XML file containing your PLS model.  These files are deployed directly from the Discrete & Batch Troubleshooter, where you are asked if you want to export your PLS model to an XML file.  

  2. Specify a Calculation method:

    • Continuous:  Fields in the output port are updated on every execute when new data is available in the input port.  The execution time is based on the sampling period in the data source.

    • Moving Window:  This is a window period that is user defined and specified in seconds.  Calculations are performed on the data over the defined window period, up to the current execute.  The values are averaged over the window period, and the fields in the output port updated on every execute. The block must execute for at least as long as the specified Moving Window period before good quality outputs are produced by the PLS Analysis block; the block will produce bad quality outputs until such a time.

    • Batch:  Calculations are performed every time a new batch is started, and a trigger is thus needed to indicate the start of a new batch.  This triggering field is selected from the list of all the input fields, and must be a Discrete field of string or integer values.  (If an input field with double values is used, and these values change with every execute, the results from the model will be similar to using Continuous field data.)  Fields in the output port will only be updated when the value of the selected trigger field in the parameter port changes.  

      NOTE:  Bad quality samples in the trigger field are ignored.  Only changes in good quality sample values are considered as triggers for executing the model.

      NOTE: Batches can only be calculated when the parameter port is linked to the data source.

      An average value over the last batch is calculated.  

      It is important to remember that the results of the model are calculated only at the trigger signalling the start of the new batch.  This does not necessarily coincide with the last data point of the previous batch, and this might result in a delay between the end of one batch, and the calculation of the model at the start of the new batch.  This delay needs to be considered when using the data, or when sinking the results of the model block.

  1. Map all the required fields in the PLS model to the available double fields in the input port.  Automatic mapping occurs when [<<] is selected. The input port must contain all fields used in constructing the loaded PLS model, and these input fields must be mapped to the required fields of the PLS model.


Related topics

  

CSense 2023- Last updated: June 24,2025