[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Calculating Averages across sensors  XML
Forum Index » Development general discussion
Author Message
Keith

Initiate

Joined: 26/06/2007 11:19:05
Messages: 42
Offline

Is ther a way of taking the output from a group of sensors and performing calculations to produce a virtual type sensor output ?

Cheers

Keith
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

That's what the Meta data source is for.

Best regards,
Matthew Lohbihler
Keith

Initiate

Joined: 26/06/2007 11:19:05
Messages: 42
Offline

Ah Ha !!! Went there and had a look, I suspect thats beyond my level,


Is this what i should get ?

var currentPoint; var pointListColumnFunctions = new Array(); var pointListOptions; function init() { var pointListColumnHeaders = new Array(); pointListColumnHeaders[pointListColumnHeaders.length] = "Name"; pointListColumnFunctions[pointListColumnFunctions.length] = function(p) { return ""+ p.name +""; }; pointListColumnHeaders[pointListColumnHeaders.length] = "Data type"; pointListColumnFunctions[pointListColumnFunctions.length] = function(p) { return p.dataTypeDescription; }; pointListColumnHeaders[pointListColumnHeaders.length] = "Status"; pointListColumnFunctions[pointListColumnFunctions.length] = function(p) { var id = "toggleImg"+ p.id; var onclick = "togglePoint("+ p.id +")"; if (p.enabled) return writeImage(id, null, "brick_go", "Enabled - click to disable", onclick); return writeImage(id, null, "brick_stop", "Disabled - click to enable", onclick); }; if (typeof appendPointListColumnFunctions == 'function') appendPointListColumnFunctions(pointListColumnHeaders, pointListColumnFunctions); pointListColumnHeaders[pointListColumnHeaders.length] = ""; pointListColumnFunctions[pointListColumnFunctions.length] = function(p) { return writeImage("editImg"+ p.id, null, "icon_comp_edit", "Edit point", "editPoint("+ p.id +")"); }; var headers = $("pointListHeaders"); var td; for (var i=0; i


Cheers

Keith
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Umm, no. And we can't recreate the problem. It's a longshot, but can you try pressing Ctrl+F5 on the page and see if it clears up?

Best regards,
Matthew Lohbihler
Keith

Initiate

Joined: 26/06/2007 11:19:05
Messages: 42
Offline

Hmmm no it didn't make any difference. I suspect the install is at fault its not the only time I have seen the issue. Should reports have anything in it ? when I load the page it just says waiting for localhost, otherwise its blank

Cheers


Keith
Keith

Initiate

Joined: 26/06/2007 11:19:05
Messages: 42
Offline

Just to close this, it was a Java_home issue, once i sorted the install out everything worked fine

Thanks

Keith
 
Forum Index » Development general discussion
Go to:   
Powered by JForum 2.1.9 © JForum Team