• WARNING: Tube/Valve amplifiers use potentially LETHAL HIGH VOLTAGES.
    Building, troubleshooting and testing of these amplifiers should only be
    performed by someone who is thoroughly familiar with
    the safety precautions around high voltages.

R pctube.r error

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Disabled Account
Joined 2013
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.
 

Attachments

  • R-pctube.r error.png
    R-pctube.r error.png
    125.8 KB · Views: 74
  • ef14-31.csv.txt
    4.4 KB · Views: 29
  • PlateCharaSample.csv.txt
    420 bytes · Views: 47
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.