public string[] getInfo() { String[] arr = new string[6]; arr[0] = "SCR"; double vac = lead_volt[anode] - lead_volt[cnode]; double vag = lead_volt[anode] - lead_volt[gnode]; double vgc = lead_volt[gnode] - lead_volt[cnode]; arr[1] = "Ia = " + SIUnits.Current(ia); arr[2] = "Ig = " + SIUnits.Current(ig); arr[3] = "Vac = " + SIUnits.Voltage(vac); arr[4] = "Vag = " + SIUnits.Voltage(vag); arr[5] = "Vgc = " + SIUnits.Voltage(vgc); return(arr); }
public static string GetCurrentString(this ICircuitElement elem) { return(SIUnits.Current(elem.getCurrent())); }