Okay what you suggested works perfect. But I'm still a bit confused on how the whole qval works.
What is the advantage of using this:
[qval.value for qval in system.tag.readBlocking(tagPath)]
Instead of just system.tag.readBlocking(tagPath)
Okay what you suggested works perfect. But I'm still a bit confused on how the whole qval works.
What is the advantage of using this:
[qval.value for qval in system.tag.readBlocking(tagPath)]
Instead of just system.tag.readBlocking(tagPath)
It isn't an "advantage", it's a necessity, because readBlocking
doesn't return a list of values. It returns a list of QualifiedValue objects. The QV wraps the value, quality, timestamp in a composite object. If you want just the value, you have to extract it.
(Ignition does this in many places. Documented to do this in many places.)