[Home][2018 Index] Re: [TCML] JAVATC version 13.4 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCML] JAVATC version 13.4



Hello Bart,

I tried your suggestion and it didn't work. I then looked at the ".js" load file format for v13.2 and v13.4. They look very different and are obviously incompatible. I ended up just re-entering the parameters from my saved design into v13.4 and then generating a new ".js" design file. I could then re-load it into v13.4 with no problem. The feature that you added for loading a saved file is much appreciated.

If anyone wants to see the difference, I have listed the contents of both versions of the ".js" load file. As you can see there is quite a difference. v13.2 seems to be defining a function with embedded parameters while v13.4 is just a list of parameters.

********* javatc v13.2 ".js" load file follows *********

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 = 0; if(z==1){form.p_ribbon.checked=true;form.p_round.checked=false;}
if(z==0){form.p_ribbon.checked=false;form.p_round.checked=true;}
z = 68; {eval(z); temp = z; form.temp.value = temp;}// ambient temperature
z = 0; {eval(z); g_radius = z; form.g_radius.value = g_radius;}
z = 0; {eval(z); w_radius = z; form.w_radius.value = w_radius;}
z = 0; {eval(z); r_height = z; form.r_height.value = r_height;}
z = 4.32; {eval(z); s_radius1 = z; form.s_radius1.value = s_radius1;}
z = 4.32; {eval(z); s_radius2 = z; form.s_radius2.value = s_radius2;}
z = 25; {eval(z); s_height1 = z; form.s_height1.value = s_height1;}
z = 63.8; {eval(z); s_height2 = z; form.s_height2.value = s_height2;}
z = 1410; {eval(z); s_turn = z; form.s_turn.value = s_turn;}
z = 22; {eval(z); s_wd = z; form.s_wd.value = s_wd;}
z = 6.3; {eval(z); p_radius1 = z; form.p_radius1.value = p_radius1;}
z = 17.824; {eval(z); p_radius2 = z; form.p_radius2.value = p_radius2;}
z = 25; {eval(z); p_height1 = z; form.p_height1.value = p_height1;}
z = 25; {eval(z); p_height2 = z; form.p_height2.value = p_height2;}
z = 11.6271; {eval(z); p_turn = z; form.p_turn.value = p_turn;}
z = 0.375; {eval(z); p_wd = z; form.p_wd.value = p_wd;}
z = 0; {eval(z); p_vwidth = z; form.p_vwidth.value = p_vwidth;}
z = 0; {eval(z); p_rthick = z; form.p_rthick.value = p_rthick;}
z = 0.045; {eval(z); Cp_uF = z; form.Cp_uF.value = Cp_uF;}
z = 83; {eval(z); Lead_Length = z; form.Lead_Length.value = Lead_Length;}
z = 0.375; {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 = 9; {eval(z); t_inner = z; form.t_inner.value = t_inner;}
z = 30; {eval(z); t_outer = z; form.t_outer.value = t_outer;}
z = 74; {eval(z); t_height = z; form.t_height.value = t_height;}
form.TT.checked = true; form.TG.checked = false;
add_toroid();
z = 0.02; {eval(z); c_radius = z; form.c_radius.value = c_radius;}
z = 78.5; {eval(z); c_height1 = z; form.c_height1.value = c_height1;}
z = 174.5; {eval(z); c_height2 = z; form.c_height2.value = c_height2;}
form.CT.checked = true; form.CG.checked = false;
add_cylinder();
z = 240; {eval(z); x_Vin = z; form.x_Vin.value = x_Vin;}
z = 14400; {eval(z); x_Vout = z; form.x_Vout.value = x_Vout;}
z = 690; {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 = 240; {eval(z); x_Vadjust = z; form.x_Vadjust.value = x_Vadjust;}
z = 20; {eval(z); x_ballast = z; form.x_ballast.value = x_ballast;}
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 = 3600; {eval(z); rsg_rpm = z; form.rsg_rpm.value = rsg_rpm;}
z = 9.5; {eval(z); rsg_disc_D = z; form.rsg_disc_D.value = rsg_disc_D;}
z = 0.125; {eval(z); rsg_ELR_D = z; form.rsg_ELR_D.value = rsg_ELR_D;}
z = 0.1563; {eval(z); rsg_ELS_D = z; form.rsg_ELS_D.value = rsg_ELS_D;}
z = 0; {eval(z); stat_EL = z; form.stat_EL.value = stat_EL;}
z = 0; {eval(z); stat_EL_D = z; form.stat_EL_D.value = stat_EL_D;}
z = 0; {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;}
}

********* javatc v13.4 ".js" load file follows **********

units=0,
ambient=0,
s_ws=0,
s_Al=0,
p_ws=1,
p_Al=0,
p_ribbon=0,
temp=68,
g_radius=0,
w_radius=0,
ceil_height=0,
s_radius1=4.32,
s_radius2=4.32,
s_height1=25,
s_height2=63.8,
s_turn=1410,
s_wd=22,
p_radius1=6.3,
p_radius2=16.297,
p_height1=25,
p_height2=25,
p_turn=11.8415,
p_wd=0.375,
p_vwidth=0,
p_rthick=0,
Cp_uF=0.045,
Lead_Length=0,
Lead_Diameter=0.375,
desired_k=0,
t.inner=9,
t.outer=30,
t.height=71,
TT=true,
TG=false,
c.radius=0.02,
c.height1=73.5,
c.height2=169.5,
CT=true,
CG=false,
x_Vin=240,
x_Vout=14400,
x_Iout=690,
x_Hz=60,
x_Vadjust=240,
x_ballast=20,
rsg_ELS=1,
rsg_ELR=4,
rsg_rpm=3600,
rsg_disc_D=9.5,
rsg_ELR_D=0.125,
rsg_ELS_D=0.1563,
stat_EL=6,
stat_EL_D=1.25,
stat_gap=0.25,
SPE=true,
RGE=false

Steve White
Cedar Rapids, Iowa

----- Original Message -----
From: "Bart Anderson" <gort@xxxxxxxxxxxxxxxx>
To: "Tesla Coil Mailing List" <tesla@xxxxxxxxxx>
Sent: Tuesday, December 25, 2018 9:22:56 AM
Subject: Re: [TCML] JAVATC version 13.4

Morning Steve and Merry Christmas.

I just checked by loading up a Javatc 13.2 saved coil data into Javatc 
13.4 and it "is" compatible. Probably what you are doing wrong is not 
changing the file name of the saved coil to "JTC_load.js" and  then 
using the Load Demo button to load that data. This was the "old" way of 
loading your file and obviously a PITA.

The "Load Saved Coil" button is new. You cannot use that button to load 
"old" saved files previous to 13.4. Just rename the old file to 
JTC_load.js (obviously you have to rename the original JTC_load.js to 
something else first), then use the Load Demo button to load.

However, once the data is loaded, go down to the "Make Load File" button 
and create a "new" one. This will open a Save As dialog box and allow 
you to save that data as a simple text file. From that time on, you will 
be able to use the new "Load Saved Coil" button at the top of the form 
without the renaming exercise.

Sorry for the inconvenience,

Bart


On 12/24/2018 8:20 PM, Steve White wrote:
> I have used JAVATC v13.2 a lot and understand it. Today I tried JAVATC v13.4. I tried loading one of my design files generated with v13.2. I used the "Load Saved Coil" button. Whenever i tried to load my selected file, all I got was all zeros in the JAVATC display for all parameters. When I use the "Load Demo Coil" button, it loads the demo file and non-zero parameters appear as expected.
>
> What am I doing wrong? Is the JAVATC v13.2 file format incompatible with v13.4?
>
> Steve White
> Cedar Rapids, Iowa
>
> _______________________________________________
> Tesla mailing list
> Tesla@xxxxxxxxxxxxxxxxxx
> https://www.pupman.com/mailman/listinfo/tesla
_______________________________________________
Tesla mailing list
Tesla@xxxxxxxxxxxxxxxxxx
https://www.pupman.com/mailman/listinfo/tesla
_______________________________________________
Tesla mailing list
Tesla@xxxxxxxxxxxxxxxxxx
https://www.pupman.com/mailman/listinfo/tesla