I wanted to make a library view that I could quickly drop inside of a tab view and simply add a param to define a WellNumber. I initially tried to find a way to bind a time series chart data to a view.params.WellNumber using a Tag History. But I found no way to do something like this inside of Expressions: {[default]AllenBradley/Controller:Global/W{view.params.WellNumber}_Well_Pressure}. So I made a script in my library which builds all the tags from the param and fills in 8 graphs when a DateTime Input is changed.
That all works great. Where I am now stumped is I would like there to be a Real Time toggle button. If it is true, I’d like to count say 10 seconds and then run the query function and load the data again. I see no way of achieving this repeating function timer though.
Is there a better way of doing this or is this kind of functionality not possible? I would think it was possible because other browser javascript tools have found a way to setup repeating timer functions like ReactQuery.