I am trying to run a very basic SFC to open a valve, read a pressure sensor, and close the valve again. When I try to run the SFC and monitor it (or debug it and monitor it), I get the following:
I have restarted the designer, the gateway, and finally my computer to no avail. The chart does not crash, I just can't monitor it in any apparent way. The SFC widget shows the same message.
This is the chart
open contains
def onStart(chart, step):
system.tag.writeBlocking(["[36ED13]COIL0-COIL200/COIL0"], [True])
business contains
def onStart(chart, step):
chart.pressure = system.tag.readBlocking(["[36ED13]HRF0-HRF100/HRF50"])
ending transition
{chart.pressure} >= 2
and looping transition
{chart.pressure} < 2
and finally, close
def onStart(chart, step):
system.tag.writeBlocking(["[36ED13]COIL0-COIL200/COIL0"], [False])
No idea why this isn't working, but it is fully blocking my path forward in developing more advanced SFCs! Any help would be wonderful.
Thanks,
-Alex
Edit: Here is the console output for a single instance of this error (triggered through the SFC widget):
java.lang.reflect.UndeclaredThrowableException: null
at com.sun.proxy.$Proxy44.getChartStatus(Unknown Source)
at com.inductiveautomation.sfc.client.SfcInstanceMonitor$MonitorStart.doInBackground(SfcInstanceMonitor.java:189)
at com.inductiveautomation.sfc.client.SfcInstanceMonitor$MonitorStart.doInBackground(SfcInstanceMonitor.java:185)
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: null
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:351)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:325)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:278)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.moduleInvokeSafe(GatewayInterface.java:917)
at com.inductiveautomation.ignition.client.gateway_interface.ModuleRPCFactory$DynamicRPCHandler.invoke(ModuleRPCFactory.java:53)
... 9 common frames omitted
Caused by: com.inductiveautomation.ignition.client.gateway_interface.GatewayResponse$GatewayThrowable:
at java.lang.Class.getMethods(null)
at org.json.JSONObject.populateMap(JSONObject.java:846)
at org.json.JSONObject.<init>(JSONObject.java:259)
at org.json.JSONObject.wrap(JSONObject.java:1460)
at org.json.JSONObject.populateMap(JSONObject.java:873)
at org.json.JSONObject.<init>(JSONObject.java:259)
at org.json.JSONObject.wrap(JSONObject.java:1460)
... (identical for hundreds of lines, those three lines 873, 259, 1460) ...
at org.json.JSONObject.populateMap(JSONObject.java:873)
at org.json.JSONObject.<init>(JSONObject.java:259)
at org.json.JSONObject.wrap(JSONObject.java:1460)