Author |
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: November 28 2008 at 14:47 | IP Logged
|
|
|
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 |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: November 30 2008 at 14:00 | IP Logged
|
|
|
No one?? Anyone?? Please :)
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 30 2008 at 14:25 | IP Logged
|
|
|
Sorry. I'd help, but I have no antlers.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 30 2008 at 21:19 | IP Logged
|
|
|
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 |
|
|
|
|