system.tag.readAsync

It seems I can't get de readAsync function working. I tried the following script in script console:

def func(values): print( [qv.value for qv in values] )

taglist=['[System]Gateway/UptimeSeconds']
print('a')
func( system.tag.readBlocking(taglist) )
print('b')
system.tag.readAsync(taglist, func)
print('c')

the output of this script is:

a
[627009L]
b
c

What am I doing wrong? I thought I should get a long value between 'b' and 'c' too.
Please point me in the right direction.

Answer to my own question:
Print functions in the callback function of system.tag.readAsync display information in de output console of the designer NOT in the script console.
The script is working I only looked at the wrong place voor the output.

1 Like

For reference: