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.

Visualization on Failure
#19
Use this:
Code:
function dalidiagtostring(value)
  local stat

  if value.ballasterror then
    stat = 'ECG error'
  elseif value.lamperror then
    stat = 'Lamp error'
  else
    stat = 'OK'
  end

  return string.format('Address %d %s', value.address + 1, stat)
end
Reply


Messages In This Thread
Visualization on Failure - by Mrinj - 06.12.2017, 07:53
RE: Visualization on Failure - by Mrinj - 06.12.2017, 09:00
RE: Visualization on Failure - by Mrinj - 06.12.2017, 09:44
RE: Visualization on Failure - by Mrinj - 07.12.2017, 07:59
RE: Visualization on Failure - by Mrinj - 09.12.2017, 09:35
RE: Visualization on Failure - by Mrinj - 10.12.2017, 11:29
RE: Visualization on Failure - by FatMax - 22.02.2018, 10:42
RE: Visualization on Failure - by FatMax - 22.02.2018, 14:58
RE: Visualization on Failure - by admin - 05.03.2024, 10:50
RE: Visualization on Failure - by admin - 05.03.2024, 12:50
RE: Visualization on Failure - by admin - 06.03.2024, 11:27

Forum Jump: