I am trying to edit a Dataset created as a TAG Memory, I am using next script and I get not errors when it is executed, but the dataset “MT1/Resultados/Datos” is not updated with new values.
table = system.tag.read(“MT1/Resultados/Datos”)
while a <=10:
source = ‘Puerta/Datos/Tiempo/’+ str(a)
tiempo = system.tag.read(source).value
newData = system.dataset.setValue(table.value, a, “Tiempo”, tiempo)
print newData.getValueAt(a, 0)
estado = system.tag.write(“MT1/Resultados/Datos”,newData)
print estado