Not sure this is the right forum to post.
This is my first time runing R with pctube.r as source file. The CSV file was taken from CurveCaptor after adding the delimiter, Ip.cal can read and plot the dotline but fail to optimise the complete plot hence no model can be generated.
> source("C:\\Users\\Acer\\Downloads\\pctube\\pctube.r")
> Ip.cal("ef14-31.csv.txt", "ef34", Cgp = 6e-12, Cgk = 4.5e-12, Cpk = 1.5e-12)
Read 324 items
Error in optim(ini, f, control = list(parscale = ini, maxit = 5000, reltol = 1e-10)) :
function cannot be evaluated at initial parameters
>
Appreciate any comment or advise from guru out there. pctube.r is fine, can plot and generate spice model use the PlateCharaSample.csv attached.
This is my first time runing R with pctube.r as source file. The CSV file was taken from CurveCaptor after adding the delimiter, Ip.cal can read and plot the dotline but fail to optimise the complete plot hence no model can be generated.
> source("C:\\Users\\Acer\\Downloads\\pctube\\pctube.r")
> Ip.cal("ef14-31.csv.txt", "ef34", Cgp = 6e-12, Cgk = 4.5e-12, Cpk = 1.5e-12)
Read 324 items
Error in optim(ini, f, control = list(parscale = ini, maxit = 5000, reltol = 1e-10)) :
function cannot be evaluated at initial parameters
>
Appreciate any comment or advise from guru out there. pctube.r is fine, can plot and generate spice model use the PlateCharaSample.csv attached.
Attachments
You have negative current in one of the lines.
Thank you very much, it's working now as I removed the -ve sign of a line.
Attachments
- Status
- This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.