System.opcua missing

So.... I am running ignition version 8.1.38
I was looking for a method of creating OPC UA connections using python (There are a lot I need to create and it would be faster to do if via script). I found exactly what I was looking for system.opcua.addConnection. But when I type in the function (system.opcUa.) It does not find the opcUa package. Also, When continuing anyways and trying to run it. It give the error object has no attribue 'opcua'

The documentation says the function was released in 8.1.8 So i thought it would have been available. Does anyone have any advice (beside just manually creating the connections)

It's important that you pay attention to the documented scope each scripting function is available in.

These are only available in Gateway (and Perspective, which is Gateway) scope. This means you can't call them from a Vision Client or the Designer Script Console, which is why they aren't in the autocomplete options.

1 Like