Skip to content

Instantly share code, notes, and snippets.

View RobHumphris's full-sized avatar

Rob Humphris RobHumphris

View GitHub Profile
@RobHumphris
RobHumphris / gist:f6c4bc5638b515ac9870b6f77fac72b1
Created September 17, 2019 15:01
This shows how we display the colours for the ISO 20816 value. Vrms is calculated by our monitoring equipment.
// We call the `setIsoValue` function passing the element `e` we want to write to, the vrms `v` and the Motor Size `ms`
// as the class:
// Class I: upto 15kW
// Class II: 15kW to 75kW
// Class III: Over 75kW Rigid support
// Class IV: Over 75kW Flexible supoort
setIsoValue("isoValue", vrms, currentMotorSize);
function setIsoValue(e, v, ms){
if (v != undefined) {