This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Setting a trend back to nil
#3
(06.02.2018, 10:35)admin Wrote: You can try using float32 data type and writing NaN value to your object. Note that it will still show as 0 in the web interface.

Thank you!  I also realised I was attempting to manipulate grp.find results which of course does nothing.  This is what works:

Code:
local function clearObject(name)
  local obj = grp.find(name)
  if ( obj ~= nil ) then
    grp.write(name,0/0)
  end
end

Trend now stops plotting as desired. 

   

Thanks again Smile
Reply


Messages In This Thread
Setting a trend back to nil - by mykro - 05.02.2018, 22:55
RE: Setting a trend back to nil - by admin - 06.02.2018, 10:35
RE: Setting a trend back to nil - by mykro - 12.02.2018, 02:39

Forum Jump: