system.tag.writeAsync | Ignition User Manual
system.tag.writeBlocking
returnList2 = system.tag.writeBlocking(['[default]testTag111','[default]testTag22266'],[12,22])
print returnList2
prop = returnList2[0].isGood()
for i in range(len(returnList2)):
prop=returnList2[i].isGood()
if(prop==False):
print 'False'
else:
print 'True'
Right! Because the second tagPath is not fund.
system.tag.writeAsync
def myCallback(asyncReturn):
for result in asyncReturn:
if not result.good:
print 'False'
system.tag.writeAsync(['[default]testTag111','[default]testTag22266'],[12,22],myCallback)
I think it should print Flase. Why it print nothing?