Hello I have 10 ovens that I want to make a list with. I have a tag that shows me how long the oven has remaining in seconds and I want to have the top of the list show which oven is going to be finished next.
I am new to ignition and don't know if this can be done so looking for some help on this thank you!
#assuming that ovens are numbered and start from 0
tagPaths = ['path/to/oven{}/timeremaining'.format(i) for i in range(numberOfOvens)]
ovens = [qv.value for qv in system.tag.readBlocking(tagPaths)]
return ovens.sort()
About the best I can do without a little more information about exactly where and what you're trying to accomplish.
Hello thank you for your quick responses I think that I want to use the table component but need to know how or if I can sort the table by the value in the rows.
If the list of ovens won't change (often) make an expression structure binding, bring in all the ovens as separate elements, then use a transform script similar to the one posted above to transform into a structure the table expects.