Problem with EDD

Help
tgelectric
2012-01-03
2012-12-15
  • tgelectric
    tgelectric
    2012-01-03

    Hi-
    I'm trying to create a simple simulation of the 12AX7 tube using the EDD compact device model.  Below is the schematic file and the output from a DC and  transient simulation.  I'm really stuck and do not understand why I'm getting errors.

    <Qucs Schematic 0.0.16>
    <Properties>
      <View=-64,-75,1416,682,1.50647,0,0>
      <Grid=10,10,1>
      <DataSet=12AX7.dat>
      <DataDisplay=12AX7.dpl>
      <OpenDisplay=1>
      <Script=12AX7.m>
      <RunScript=0>
      <showFrame=0>
      <FrameText0=Title>
      <FrameText1=Drawn By:>
      <FrameText2=Date:>
      <FrameText3=Revision:>
    </Properties>
    <Symbol>
      <.PortSym 40 20 2 0>
      <.PortSym 40 60 3 0>
      <.PortSym 40 100 1 0>
    </Symbol>
    <Components>
      <Port P 1 560 130 -62 -23 0 3 "2" 1 "analog" 0>
      <Port K 1 560 440 12 4 0 1 "3" 1 "analog" 0>
      <Port G 1 230 270 -23 -56 1 0 "1" 1 "analog" 0>
      <C Cgp 1 400 220 17 -26 0 1 "1.7 pF" 1 "" 0 "neutral" 0>
      <C Cgk 1 400 340 17 -26 0 1 "1.6 pF" 1 "" 0 "neutral" 0>
      <C Cpk 1 720 290 17 -26 0 1 "0.4 pF" 1 "" 0 "neutral" 0>
      <VProbe Vgk 1 340 340 -31 28 1 3>
      <VProbe Vpk 1 650 280 -16 28 0 3>
      <EDD D2 1 560 280 222 67 0 3 "explicit" 0 "1" 0 "((83.5*Vgk.v+Vpk.v)<0) ? 0 : 1.73E-6*(83.5*Vgk.v+Vpk.v)^1.5" 1 "0" 0>
    </Components>
    <Wires>
      <400 370 400 420 "" 0 0 0 "">
      <400 420 560 420 "" 0 0 0 "">
      <400 270 400 310 "" 0 0 0 "">
      <560 420 560 440 "" 0 0 0 "">
      <560 310 560 420 "" 0 0 0 "">
      <560 130 560 170 "" 0 0 0 "">
      <400 170 400 190 "" 0 0 0 "">
      <560 170 560 250 "" 0 0 0 "">
      <400 170 560 170 "" 0 0 0 "">
      <400 250 400 270 "" 0 0 0 "">
      <560 420 720 420 "" 0 0 0 "">
      <230 270 400 270 "" 0 0 0 "">
      <560 170 720 170 "" 0 0 0 "">
      <720 170 720 260 "" 0 0 0 "">
      <720 320 720 420 "" 0 0 0 "">
      <560 310 630 310 "" 0 0 0 "">
      <630 290 630 310 "" 0 0 0 "">
      <560 250 630 250 "" 0 0 0 "">
      <630 250 630 270 "" 0 0 0 "">
      <360 370 400 370 "" 0 0 0 "">
      <360 350 360 370 "" 0 0 0 "">
      <360 310 400 310 "" 0 0 0 "">
      <360 310 360 330 "" 0 0 0 "">
    </Wires>
    <Diagrams>
    </Diagrams>
    <Paintings>
    </Paintings>


    Here is the output of the simulation:

    Starting new simulation on Tue 03. Jan 2012 at 09:55:09

    creating netlist… done.
    parsing netlist…
    checking netlist…
    checker notice, variable `Vpk.v' in equation `D2.I1' not yet defined
    checker notice, variable `Vgk.v' in equation `D2.I1' not yet defined
    checker notice, variable `Vpk.v' in equation `D2.I1' not yet defined
    checker notice, variable `Vgk.v' in equation `D2.I1' not yet defined
    netlist content
          5 C instances
          1 DC instances
          4 VProbe instances
          3 R instances
          1 EDD instances
          1 Vdc instances
          1 Vac instances
          1 TR instances
    creating netlist…
    checker notice, variable `Vpk.v' in equation `D2.I1' not yet defined
    checker notice, variable `Vgk.v' in equation `D2.I1' not yet defined
    checker notice, variable `Vpk.v' in equation `D2.I1' not yet defined
    checker notice, variable `Vgk.v' in equation `D2.I1' not yet defined

    Errors occurred during simulation on Tue 03. Jan 2012 at 09:55:12
    Aborted.

    Error output:
    checker error, no appropriate function for `(Vgk.v+Vpk.v)' found
    checker error, no appropriate function for `(83.5*(Vgk.v+Vpk.v))' found
    checker error, no appropriate function for `((83.5*(Vgk.v+Vpk.v))<0)' found
    checker error, no appropriate function for `(Vgk.v+Vpk.v)' found
    checker error, no appropriate function for `((Vgk.v+Vpk.v)^1.5)' found
    checker error, no appropriate function for `((1.73e-006*83.5)*((Vgk.v+Vpk.v)^1.5))' found
    checker error, no appropriate function for `(((83.5*(Vgk.v+Vpk.v))<0)?0:((1.73e-006*83.5)*((Vgk.v+Vpk.v)^1.5)))' found
    evaluate error, no such generated variable `Vgk.v'
    evaluate error, no such generated variable `Vpk.v'

     
  •  magneto98
    magneto98
    2012-01-04

    Hi graber1,

    your schematic is a subcircuit. Could you also post the higher-level schematic?