Analysis Selector Properties
Properties are set through the Perspective Property Editor in Designer or through scripting.
Setting Analysis Properties via Scripting
Note that the section prefix is included before the property name (props, position, custom or meta).
Setting Analysis Properties in Perspective Property Editor
Custom Filter Parameters
You can set up custom filter parameters in the Perspective Property Editor when the Analysis component is selected in Designer and not in the preview mode (F5). The custom filters are listed in the Filter By options.
Both the Analysis Selector and Analysis Controller support parameter passing to filters in two different ways.
- You can use the getParameterValue() extension function to pass the value to the named parameter
- You can add a custom property to the component with the same name as the filter parameter and populate it with the value you want to use for the filter
You can't use both methods at the same time. If you use the custom property method, do not use the getParameterValue() extension function at the same time.
- Custom property name should not have the preceding @ character that appears in the filter expression.
- Parameters can be manually typed in the filter expression.
- All parameters start with the @ character.
- When the analysis is executed, all parameter references in the filter expression are resolved in the following order.
- A check to see if the custom property exists. If true, the value is assigned to the parameter.
- The getParameterValue extension function is called. If a value was assigned from the custom property step, then it is passed into the extension function. The extension function can change the parameter value or return None to keep the current value.
For example, filtering on Equipment Path shows custom properties with String data types. When filtering on the Schedule Rate analysis item, then custom properties with numeric data types are shown.
Operation UUID != '' AND Equipment Path = @LinePath AND Shift LIKE @ShiftName
Click thelink by the filter category and specific filter items are displayed.
When selected they are added to the filters as shown below.
To minimize the number of filter options, only the options for the selected date range defined by the Start Date and End Date properties are shown.
Compare By and Data Points work similarly to Filter By except there are no categories for these selections, just items. Selections can be removed by clickingicon and unchecking the appropriate box. Analysis settings can be deleted by hitting the delete icon.
The Group By does not accept the following data points (they will be excluded from the available choices):
- Line Downtime Occurrence Count
- Line Schedule Count
- Line Schedule Duration
- Schedule Rate
When the MES Analysis Selector is bound to a Sepasoft Analysis Table component, data drill down capabilities become available for any row in the table (the Analysis Table is basically an Ignition Table component with Drill Down capability added). This provides further-refined Analysis Results based on selecting an additional drill-down Data Point. Once a Data Point is selected from the Drill Down menu, the MES Analysis Selector component is triggered to run a new Analysis using the selected Data Point in place of the first Data Point currently listed in the Data Points field. The first column in the Analysis table becomes the selected Drill Down Data Point.
This component provide the following functions that can be called on it. If this component has been dropped onto root of a View, then the path and an example call would be self.getSibling('mesAnalysisSelector').clearDrillDownHistory().
Removes the drill down history.
Sets all the analysis selections to the previous state before the last drill down.
Causes analysis results to update with current result.