Switch to desktop version  
Is possible turn on/off "Historical data" using Basic code? - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: Is possible turn on/off "Historical data" using Basic code? (/thread-2749.html)



Is possible turn on/off "Historical data" using Basic code? - LuisEnrique - 26-05-2025

Hi team HMS

I would like turn on/off the "Historical data" using Basic code, it is possible to do this?

Thanks in advance.

Luis


RE: Is possible turn on/off "Historical data" using Basic code? - ziozetti - 27-05-2025

Hi Luis, it's possible to enable/disable historical logging on tags with GETSYS & SETSYS TAG


RE: Is possible turn on/off "Historical data" using Basic code? - LuisEnrique - 27-05-2025

(27-05-2025, 12:11 AM)ziozetti Wrote: Hi Luis, it's possible to enable/disable historical logging on tags with GETSYS & SETSYS TAG

Thanks Ziozetti, Do you have a example or the commands to use SETSYS?

Actually Im trying with the next structure, Not send me a error but it doesn´t work:

  SETSYS TAG, "LOAD", Test_Histo_Tag@
  SETSYS TAG, "LogEnabled",0
  SETSYS TAG, "SAVE"
CFGSAVE


Regards

Luis


RE: Is possible turn on/off "Historical data" using Basic code? - simon - 05-06-2025

Hi,

It is
SETSYS TAG, "LOAD", "Test_Histo_Tag"
SETSYS TAG, "LogEnabled","0"
SETSYS TAG, "SAVE"
CFGSAVE

All parameters are string