[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[TCML] Java TC Load File problem
Bart,
I have successfully created one load file. From that point onward,
every file saved and attempted to load (as JTC_load.js ) will not.
I can rename the first and it loads, any other will not ... ??
Thanks, Alex P
This will Not load .. ?
function loadDemo(form) {
Clear(form);
z = 0; if(z==0){form.units.selectedIndex=0; inches=true;}
if(z==1){form.units.selectedIndex=1; cm=true;}
z = 0; if(z==0){form.ambient.selectedIndex=0; fahrenheit=true;}
if(z==1){form.ambient.selectedIndex=1; centigrade=true;}
GetUnits(form);
z = 0; if(z==1){form.s_ws.checked=true;form.s_awg.checked=false;}
if(z==0){form.s_ws.checked=false;form.s_awg.checked=true;}
z = 0; if(z==1){form.s_Al.checked=true;form.s_Cu.checked=false;}
if(z==0){form.s_Al.checked=false;form.s_Cu.checked=true;}
z = 1; if(z==1){form.p_ws.checked=true;form.p_awg.checked=false;}
if(z==0){form.p_ws.checked=false;form.p_awg.checked=true;}
z = 0; if(z==1){form.p_Al.checked=true;form.p_Cu.checked=false;}
if(z==0){form.p_Al.checked=false;form.p_Cu.checked=true;}
z = 68; {eval(z); temp = z; form.temp.value = temp;}// ambient temperature
z = 200; {eval(z); g_radius = z; form.g_radius.value = g_radius;}
z = 50; {eval(z); w_radius = z; form.w_radius.value = w_radius;}
z = 68.5; {eval(z); r_height = z; form.r_height.value = r_height;}
z = 2.26; {eval(z); s_radius1 = z; form.s_radius1.value = s_radius1;}
z = 2.26; {eval(z); s_radius2 = z; form.s_radius2.value = s_radius2;}
z = 17.5; {eval(z); s_height1 = z; form.s_height1.value = s_height1;}
z = 38.5; {eval(z); s_height2 = z; form.s_height2.value = s_height2;}
z = 940; {eval(z); s_turn = z; form.s_turn.value = s_turn;}
z = 24; {eval(z); s_wd = z; form.s_wd.value = s_wd;}
z = 4.25; {eval(z); p_radius1 = z; form.p_radius1.value = p_radius1;}
z = 9.25; {eval(z); p_radius2 = z; form.p_radius2.value = p_radius2;}
z = 17.5; {eval(z); p_height1 = z; form.p_height1.value = p_height1;}
z = 19; {eval(z); p_height2 = z; form.p_height2.value = p_height2;}
z = 10; {eval(z); p_turn = z; form.p_turn.value = p_turn;}
z = 0.25; {eval(z); p_wd = z; form.p_wd.value = p_wd;}
z = 0.0188; {eval(z); Cp_uF = z; form.Cp_uF.value = Cp_uF;}
z = 30; {eval(z); Lead_Length = z; form.Lead_Length.value = Lead_Length;}
z = 0.2; {eval(z); Lead_Diameter = z; form.Lead_Diameter.value = Lead_Diameter;}
z = 0; {eval(z); desired_k = z; form.desired_k.value = desired_k;}
z = 3; {eval(z); t_inner = z; form.t_inner.value = t_inner;}
z = 12; {eval(z); t_outer = z; form.t_outer.value = t_outer;}
z = 45; {eval(z); t_height = z; form.t_height.value = t_height;}
form.TT.checked = true; form.TG.checked = false;
add_toroid();
z = 120; {eval(z); x_Vin = z; form.x_Vin.value = x_Vin;}
z = 12000; {eval(z); x_Vout = z; form.x_Vout.value = x_Vout;}
z = 60; {eval(z); x_Iout = z; form.x_Iout.value = x_Iout;}
z = 60; {eval(z); x_Hz = z; form.x_Hz.value = x_Hz;}
z = 120; {eval(z); x_Vadjust = z; form.x_Vadjust.value = x_Vadjust;}
z = 0; {eval(z); x_ballast = z; form.x_ballast.value = x_ballast;}
z = 0.35; {eval(z); x_Rp = z; form.x_Rp.value = x_Rp;}
z = 4520; {eval(z); x_Rs = z; form.x_Rs.value = x_Rs;}
z = 1; {eval(z); rsg_ELS = z; form.rsg_ELS.value = rsg_ELS;}
z = 4; {eval(z); rsg_ELR = z; form.rsg_ELR.value = rsg_ELR;}
z = 1800; {eval(z); rsg_rpm = z; form.rsg_rpm.value = rsg_rpm;}
z = 10.6; {eval(z); rsg_disc_D = z; form.rsg_disc_D.value = rsg_disc_D;}
z = 0.375; {eval(z); rsg_ELR_D = z; form.rsg_ELR_D.value = rsg_ELR_D;}
z = 0.375; {eval(z); rsg_ELS_D = z; form.rsg_ELS_D.value = rsg_ELS_D;}
z = 7; {eval(z); stat_EL = z; form.stat_EL.value = stat_EL;}
z = 1; {eval(z); stat_EL_D = z; form.stat_EL_D.value = stat_EL_D;}
z = 0.21; {eval(z); stat_gap = z; form.stat_gap.value = stat_gap;}
if(form.SPE.checked==true){form.SPE.checked=true;form.RGE.checked=false;}
if(form.RGE.checked==true){form.SPE.checked=false;form.RGE.checked=true;}
}
_______________________________________________
Tesla mailing list
Tesla@xxxxxxxxxxxxxx
http://www.pupman.com/mailman/listinfo/tesla