Sepasoft MES Module Suite
Process Capability Chart
A component that is used to analyze process capability. The Process Capability is a measurable property of a process to the specification, expressed as a process capability index or as a process performance index.
Component Palette
Component Properties
Properties are provided that can be set to affect the operation and look of the component. They can be set through the Property Editor in the Designer or through scripting.
Example
Code |
|

Chart
| Name | Scripting | Property Type | Description |
|---|---|---|---|
| Vertical | vertical | boolean | The orientation of the chart. |
| Chart Background Color | chartBackground | Color | The color of the chart background. |
| Bar Color | barColor | Color | The color of the bars for the chart. |
| Bar Spacing | barSpacing | Float8 | Spacing between bar as a percentage of the bar width. |
| Gradient | gradient | boolean | If true, bars will be painted with a gradient 'shine'. |
| Shadows | shadow | boolean | If true, show shadows for bars. |
| Tick Label Font | tickLabelFont | Font | The font of the tick labels. |
| Tick Label Color | tickLabelColor | Color | The color of the tick labels. |
| Show Bell Curve | showBellCurve | boolean | If true, show the bell curve on the chart. |
| Bell Curve Color | bellCurveColor | Color | Color of the bell curve line. |
| LCL Color | lCLColor | Color | Color of the lower control limit line. |
| Spec Target Color | specTargetColor | Color | Color of the specification target line. |
| Spec Limit Color | specLimitColor | Color | Color of the lsl and usl lines. |
| Show LCL | showLCL | boolean | If true, show the lower control limit on the chart. |
| Show UCL | showUCL | boolean | If true, show the upper control limit on the chart. |
| Control Limit Color | controlLimitColor | Color | Color of the lcl and ucl lines. |
| Value Axis Title | valueAxisTitle | String | Title to show for the value axis. |
| Frequency Axis Title | frequencyAxisTitle | String | Title to show for the frequency axis. |
| Axis Title Font | axisTitleFont | Font | Font for both axis titles. |
| Axis Title Color | axisTitleColor | Color | Color to display both axis titles. |
| Vertical Grid Line Color | vertGridLineColor | Color | The color of vertical grid lines. |
| Show Vertical Grid Lines | showVertGridLines | boolean | If true, show vertical grid lines on charts. |
| Horizontal Grid Line Color | horzGridLineColor | Color | The color of horizontal grid lines. |
| Show Horizontal Grid Lines | showHorzGridLines | boolean | If true, show horizontal grid lines on charts. |
| UCL Color | uCLColor | Color | Color of the upper control limit line. |
Calculated Values
| Name | Scripting | Property Type | Description |
|---|---|---|---|
| Mean | mean | Float8 | The mean value. |
| Standard Deviation | stdDev | Float8 | The standard deviation value. |
| lcl | lcl | Float8 | The lower control limit value. |
| ucl | ucl | Float8 | The upper control limit value. |
| cp | cp | Float8 | The cp value. |
| cpk | cpk | Float8 | The cpk value. |
| cpm | cpm | Float8 | The cpm value. |
| cpl | cpl | Float8 | The cpl value. |
| cpu | cpu | Float8 | The cpu value. |
Event Handlers
Event handlers provide the ability to add custom script when a user interacts with a component such as by clicking a mouse, selecting a menu item or when a component property changes.
mouse
mouseClicked
This event signifies a mouse click on the source component. A mouse click the combination of a mouse press and a mouse release, both of which must have occurred over the source component. Note that this event fires after the pressed and released events have fired.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .button | The code for the button that caused this event to fire. |
| .clickCount | The number of mouse clicks associated with this event. |
| .x | The x-coordinate (with respect to the source component) of this mouse event. |
| .y | The y-coordinate (with respect to the source component) of this mouse event. |
| .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
| .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. |
| .controlDown | True (1) if the Ctrl key was held down during this event, false (0) otherwise. |
| .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseEntered
This event fires when the mouse enters the space over the source component.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .button | The code for the button that caused this event to fire. |
| .clickCount | The number of mouse clicks associated with this event. |
| .x | The x-coordinate (with respect to the source component) of this mouse event. |
| .y | The y-coordinate (with respect to the source component) of this mouse event. |
| .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
| .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. |
| .controlDown | True (1) if the Ctrl key was held down during this event, false (0) otherwise. |
| .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseExited
This event fires when the mouse leaves the space over the source component.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .button | The code for the button that caused this event to fire. |
| .clickCount | The number of mouse clicks associated with this event. |
| .x | The x-coordinate (with respect to the source component) of this mouse event. |
| .y | The y-coordinate (with respect to the source component) of this mouse event. |
| .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
| .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. |
| .controlDown | True (1) if the Ctrl key was held down during this event, false (0) otherwise. |
| .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
mousePressed
This event fires when a mouse button is pressed down on the source component.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .button | The code for the button that caused this event to fire. |
| .clickCount | The number of mouse clicks associated with this event. |
| .x | The x-coordinate (with respect to the source component) of this mouse event. |
| .y | The y-coordinate (with respect to the source component) of this mouse event. |
| .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
| .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. |
| .controlDown | True (1) if the Ctrl key was held down during this event, false (0) otherwise. |
| .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseReleased
This event fires when a mouse button is released, if that mouse button's press happened over this component.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .button | The code for the button that caused this event to fire. |
| .clickCount | The number of mouse clicks associated with this event. |
| .x | The x-coordinate (with respect to the source component) of this mouse event. |
| .y | The y-coordinate (with respect to the source component) of this mouse event. |
| .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
| .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. |
| .controlDown | True (1) if the Ctrl key was held down during this event, false (0) otherwise. |
| .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseMotion
mouseDragged
Fires when the mouse moves over a component after a button has been pushed.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .button | The code for the button that caused this event to fire. |
| .clickCount | The number of mouse clicks associated with this event. |
| .x | The x-coordinate (with respect to the source component) of this mouse event. |
| .y | The y-coordinate (with respect to the source component) of this mouse event. |
| .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
| .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. |
| .controlDown | True (1) if the Ctrl key was held down during this event, false (0) otherwise. |
| .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseMoved
Fires when the mouse moves over a component, but no buttons are pushed.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .button | The code for the button that caused this event to fire. |
| .clickCount | The number of mouse clicks associated with this event. |
| .x | The x-coordinate (with respect to the source component) of this mouse event. |
| .y | The y-coordinate (with respect to the source component) of this mouse event. |
| .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
| .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. |
| .controlDown | True (1) if the Ctrl key was held down during this event, false (0) otherwise. |
| .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
propertyChange
propertyChange
Fires whenever a bindable property of the source component changes. This works for standard and custom (dynamic) properties.
| Property | Description |
|---|---|
| .source | The component that fired this event. |
| .newValue | The new value that this property changed to. |
| .oldValue | The value that this property was before it changed. Note that not all components include an accurate oldValue in their events. |
| .propertyName | The name of the property that changed. NOTE: Remember to always filter out these events for the property that you are looking for! Components often have many properties that change. |

Extension Functions
This component does not have extension functions associated with it.
Custom Methods
Custom methods allow you to add your own component functions to a component that can be called through scripting. This is a useful and clean method of re-using script that is specific to the component (say you want to update a visual aspect of the component in the same way whether a user clicks on the component or a window property value changes). See Component Custom Methods in the Ignition Help Manual for more information.

Customizers
This component does not have any custom properties.
Component Functions
This component provides the following function that can be called on it. If this component has been dropped onto the windows root container, the path and an example call would be event.source.parent.getComponent('Process Capability Chart').showSetLimitPanel(chartName).
showSetLimitPanel(chartName)
- Description
Causes the calculate and set control limit dialog to be shown.
- Parameters
String chartName - Which chart to show the control limit dialog for. Available options are "Primary".
- Return
Nothing
- Scope
Client
Sepasoft MES Module Suite