I'd like to modify the minimum sample rate or scan rate of a tag group via scripting. Is this possible?
Some background: We are looking for a way to slow the rate of historization when our edge sites lose connection with the enterprise gateway. The 20m record limit on Edge fills up quickly at some of our larger sites, and we'd rather have slower historization than lose data altogether.
Can you not use a driven tag type, and link the driven expression to the comms value?
I had no idea this existed until now and it seems it is exactly what we are looking for. Thank you!
What are your thoughts on using the system gateway IsAvailable tag for this purpose?
If I understand this correctly, any tags using this tag group for history will scan every 3 seconds for changes. However, if the _0:0:Enterprise/isAvailable tag turns false for any reason, the tag group will instead scan every 30 seconds for changes.
That should be okay. So if this value turns to anything not 1, like 0 it should run at the 30000 rate
I would just double check if the availability is true/false or 1/0, I can't personally remember. If they're wrong it might not work as you want
Yea, I noticed I couldn't place "true" in the Comparison Value section. I'll have to run a few tests to ensure it's working properly. Thank you!