Sepasoft MES Module Suite
Executing Charts
Users execute ('run') a chart using one the methods below from within a script anywhere within Ignition, such as in an Ignition component (example: a Button), a shared or Gateway script, an MES Script or a tag script.
|
To build a Business Connector chart, see Building Charts. |
Available Scripting Functions
Business Connector Charts are 'run' (executed).
Asynchronous
The two methods are found here: system.mes.bc.executeChart
system.mes.bc.executeChart(chartPath)
- No Chart Parameter values are passed or returned.
- Does not wait for the chart to complete execution before returning control to the calling script.
system.mes.bc.executeChart(chartPath, chartParameters)
- Passes a Python dictionary of Chart Parameter names and values into the chart.
- Does not wait for the chart to complete execution before returning control to the calling script.
Synchronous
The three methods are found here: system.mes.bc.executeChartSynchronous
system.mes.bc.executeChartSynchronous(chartPath)
- No Chart Parameter values are passed or returned.
- Will wait for the chart to complete execution before returning control to the calling script.
system.mes.bc.executeChartSynchronous(chartPath, chartParameters)
- Passes a Python dictionary of Chart Parameter names and values into the chart.
- Will wait for the chart to complete execution before returning control to the calling script.
system.mes.bc.executeChartSynchronous(chartPath, chartParameters, returnChartParameters)
- Passes a Python dictionary of Chart Parameter names and values into the chart.
- Passes a Python list of Chart Parameters to be returned.
- Returns a Python dictionary containing the requested Chart Parameters for use by the calling script.
- Will wait for the chart to complete execution, so that the parameter values in the returned Python dictionary are valid upon returning control to the calling script.
Sepasoft MES Module Suite