(function(f){var g=new function(){this.Mainboard=function(){this.category="Hardware";this.name="Mainboard";this.subnavigationicon="sec-nav-mainboard.png";var c=void 0;this.Init=function(){c=this;if(void 0==c||null==c)return!1;c.setCycleTime(2E3);c.setCommunicationObj(f.DevMan.getCommunicationModule(f.DevMan.CommunicationType.mdp));c.addParameter("Mainboard_Information_Property_MainboardType",!1);c.addParameter("Mainboard_Information_Property_SerialNumber",!1);c.addParameter("Mainboard_Information_Property_ProductionDate",
!1);c.addParameter("Mainboard_Information_Property_BootCount",!1);c.addParameter("Mainboard_Information_Property_OperatingTime",!0);c.addParameter("Mainboard_Information_Property_MinBoardTemperature",!0);c.addParameter("Mainboard_Information_Property_MaxBoardTemperature",!0);c.addParameter("Mainboard_Information_Property_MinInputVoltage",!0);c.addParameter("Mainboard_Information_Property_MaxInputVoltage",!0);c.addParameter("Mainboard_Information_Property_MainboardTemperature",!0);c.addParameter("Mainboard_VersionInformation_Property_MainboardRevision",
!1);c.addParameter("Mainboard_VersionInformation_Property_BiosMajorVersion",!1);c.addParameter("Mainboard_VersionInformation_Property_BiosMinorVersion",!1);c.addParameter("Mainboard_VoltageInformationName_Property_Len",!1);c.addParameter("Mainboard_VoltageInformationLocation_Property_Len",!1);c.addParameter("Mainboard_VoltageInformationVoltage_Property_Len",!0);c.addParameter("Mainboard_VoltageInformationNominalVoltage_Property_Len",!1);c.setOnInitStaticPage(g);c.setOnDisplayValues(h);return!0};var g=
function(a){var b="";if(a[0].getHasValues()||a[1].getHasValues()||a[2].getHasValues()||a[3].getHasValues()||a[4].getHasValues()||a[5].getHasValues()||a[6].getHasValues()||a[7].getHasValues()||a[8].getHasValues()||a[9].getHasValues())b+="<h3>Mainboard information</h3><table>",a[0].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Type</td><td><div id="'+a[0].parameterName+'"></div></td></tr> '),a[1].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Serialnumber</td><td><div id="'+a[1].parameterName+
'"></div></td></tr> '),a[2].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Productiondate</td><td><div id="'+a[2].parameterName+'"></div></td></tr> '),a[3].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Boot count</td><td><div id="'+a[3].parameterName+'"></div></td></tr> '),a[4].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Operating time (min)</td><td><div id="'+a[4].parameterName+'"></div></td></tr> '),a[5].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Min temperature (\u00b0C)</td><td><div id="'+
a[5].parameterName+'"></div></td></tr> '),a[6].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Max temperature (\u00b0C)</td><td><div id="'+a[6].parameterName+'"></div></td></tr> '),a[7].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Min input voltage (mV)</td><td><div id="'+a[7].parameterName+'"></div></td></tr> '),a[8].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Max input voltage (mV)</td><td><div id="'+a[8].parameterName+'"></div></td></tr> '),a[9].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Temperature (\u00b0C)</td><td><div id="'+
a[9].parameterName+'"></div></td></tr> '),b+="</table>",b+="<br>";if(a[10].getHasValues()||a[11].getHasValues()||a[12].getHasValues())b+="<h3>Version</h3>",b+="<table>",a[10].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Mainboard revision</td><td><div id="'+a[10].parameterName+'"></div></td></tr> '),a[11].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Bios major</td><td><div id="'+a[11].parameterName+'"></div></td></tr> '),a[12].getHasValues()&&(b+='<tr><td class="td_FirstColumn">Bios minor</td><td><div id="'+
a[12].parameterName+'"></div></td></tr> '),b+="</table>",b+="<br>";if(a[13].getHasValues()||a[14].getHasValues()||a[15].getHasValues()||a[16].getHasValues()){var b=b+"<h3>Voltage</h3>",b=b+"<table>",b=b+"<tr><th>Name</th><th>Location</th><th>Voltage [mV]</th><th>Nominal Voltage [mV]</th>",d=0;a[13].getHasValues()&&(d=a[13].values[0].length);var e=0;a[14].getHasValues()&&(e=a[14].values[0].length);var f=0;a[15].getHasValues()&&(f=a[15].values[0].length);var g=0;a[16].getHasValues()&&(g=a[16].values[0].length);
d=Math.max(d,e,f,g);for(e=0;e<d;e++)b+="<tr>",b+='<td class="td_FirstColumn"><div id="'+a[13].parameterName+e+'"></div></td>',b+='<td><div id="'+a[14].parameterName+e+'"></div></td>',b+='<td><div id="'+a[15].parameterName+e+'"></div></td>',b+='<td><div id="'+a[16].parameterName+e+'"></div></td>',b+="</tr>";b+="</table><br>"}b+='<div id="status"></div>';c.writeActivePage(b);return!0},h=function(a){a[0].getHasValues()&&c.writeElement(a[0].parameterName,a[0].values[0].data);a[1].getHasValues()&&c.writeElement(a[1].parameterName,
a[1].values[0].data);a[2].getHasValues()&&c.writeElement(a[2].parameterName,a[2].values[0].data);a[3].getHasValues()&&c.writeElement(a[3].parameterName,a[3].values[0].data);a[4].getHasValues()&&c.writeElement(a[4].parameterName,a[4].values[0].data);a[5].getHasValues()&&c.writeElement(a[5].parameterName,a[5].values[0].data);a[6].getHasValues()&&c.writeElement(a[6].parameterName,a[6].values[0].data);a[7].getHasValues()&&c.writeElement(a[7].parameterName,a[7].values[0].data);a[8].getHasValues()&&c.writeElement(a[8].parameterName,
a[8].values[0].data);a[9].getHasValues()&&c.writeElement(a[9].parameterName,a[9].values[0].data);a[10].getHasValues()&&c.writeElement(a[10].parameterName,a[10].values[0].data);a[11].getHasValues()&&c.writeElement(a[11].parameterName,a[11].values[0].data);a[12].getHasValues()&&c.writeElement(a[12].parameterName,a[12].values[0].data);var b=0;a[13].getHasValues()&&(b=a[13].values[0].length);for(var d=0;d<b;d++)c.writeElement(a[13].parameterName+d,a[13].values[0][d].getOutput());b=0;a[14].getHasValues()&&
(b=a[14].values[0].length);for(d=0;d<b;d++)c.writeElement(a[14].parameterName+d,Helper.getMainboardVoltageLocation(a[14].values[0][d].data));a[15].getHasValues();for(d=0;d<b;d++)c.writeElement(a[15].parameterName+d,a[15].values[0][d].getOutput());b=0;a[16].getHasValues()&&(b=a[16].values[0].length);for(d=0;d<b;d++)c.writeElement(a[16].parameterName+d,a[16].values[0][d].getOutput())}};this.Mainboard.prototype=new f.Page_Template.Template};f.DevMan.RegisterModule(new g.Mainboard,f.DevMan.ModuleType.Website)})(window);
