Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Elk Analog I/O Setup Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: November 28 2008 at 14:47 | IP Logged Quote MrGibbage

Can the Status Column in the Device Status page be anything other than 0, 1, 2, yada yada yada? I think it has something to do with what I have in the Analog I/O setup. Right now for the Raw to Calculate formula I have [DATA]. I'd love it if it would just say "Disarmed", "Armed Away", etc. Same for the inputs. Instead of showing that integer, can I make it show some user firendly text? And maybe even make it change color based on the status? I thought at one point it said something like "Normal, shorted", but even that is not what I want.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: November 30 2008 at 14:00 | IP Logged Quote MrGibbage

No one?? Anyone?? Please :)
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: November 30 2008 at 14:25 | IP Logged Quote TonyNo

Sorry. I'd help, but I have no antlers.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 30 2008 at 21:19 | IP Logged Quote dhoward

MrGibbage,

It depends upon the Analog I/O type. If you're working with a Multi-State input, then just delete the [DATA] in the Raw to Calculate formula and you'll get the default formula which will show the standard "Normal, Shorted" type of text.

For the Multi-State inputs, if you're primarily interested in just the open/close state of the input (and not the resistance, etc.), you can instead declare the Elk inputs as Digital Inputs. This gives you just 2 states but allows you to declare Digital Input Types with the messages and colors you prefer.

If you're working with the new Arm Status, Alarm State, etc. type of inputs, then also leave the formula field blank so the default built-in formula and color changes will be used.

If you don't like the color and text of the built in formula, then you can change it how you like with the Raw to Calculated formula. Typically this would be done with a case statement which may look something like this:

case([DATA] when 0 then "Open" when 1 then "Closed" when 2 then "Shorted" else "Error")

The above statement is just an example illustrating how the the [DATA] value can be "converted" into more readable text. In the same formula, you can also set the colors using the ph_setanalogdisplay function.

Hope this helps,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum