Problem controling or writting to an IEC61850 Device

Good morning gents,

I have a problem in understanding ignition functions for IEC61850 driver. I have already create a devide in my designer where I create multiple tags that get information from a report of an IEC61850 preconfigured in my gateway. Now I want to control or write to one of those tags but I dont really undertand how functions works. For Example:

Im trying to access information with function inside a button to print that information:
device = system.iec81650.getControlParams("tag_path")
print(device)

but ignition give me the following error:
AttributeError: 'com.inductiveautomation.ignition.common.script.Imm' object has no attribute 'iec61850'

Maybe I am not undertanding how to work with these functions, can anybody help me please understand.

Best regards,

I'm going to guess that you are trying to use that function in the designer script console. That is Vision scope. You need gateway scope, which cannot be tested directly from the designer.

Consider making a project library function with your test code, and a gateway message handler that calls it. Or, perhaps, use the system.util.runInGateway decorator from my Integration Toolkit.