I am trying to run a simple DC simulation in which a node voltage is the component value, in this case the gain of a voltage controlled current source. But it gives an error: Invalid number. Can you please help point out what I am doing wrong here. I have checked the forums and I should be able to set the node voltage as {V(out} but it is still not working. Thanks.
* Schematics Version 9.1 - Web Update 1
* Fri Sep 24 11:34:05 2021
.PARAM power=5
** Analysis setup **
.tran 1ms 1
.OP
* From [PSPICE NETLIST] section of pspiceev.ini:
.lib "nom.lib"
.INC "ConstPowLoad.net"
**** INCLUDING ConstPowLoad.net ****
* Schematics Netlist *
V_V1 out 0 1V
G_G2 out 0 out 0 {V(out)}
-------------------------$
ERROR -- Invalid number
**** RESUMING ConstPowLoad.cir ****
.INC "ConstPowLoad.als"
**** INCLUDING ConstPowLoad.als ****
* Schematics Aliases *
.ALIASES
V_V1 V1(+=out -=0 )
G_G2 G2(3=out 4=0 1=out 2=0 )
_ _(out=out)
_ _(gnd=0)
.ENDALIASES
**** RESUMING ConstPowLoad.cir ****
.probe
.END
Copyright © 2020 Cadence Design Systems, Inc. All rights reserved.
I tried with a simple voltage source in series with a resistor circuit. The resistor value is to be determined by the voltage across the resistor. Same issue and it does not work. Any help with syntax would be hugely appreciated. Thanks
* Schematics Version 9.1 - Web Update 1
* Fri Sep 24 11:45:34 2021
.PARAM power=5
** Analysis setup **
.tran 1ms 1
.OP
* From [PSPICE NETLIST] section of pspiceev.ini:
.lib "nom.lib"
.INC "ConstPowLoad_R.net"
**** INCLUDING ConstPowLoad_R.net ****
* Schematics Netlist *
V_V1 out 0 1V
R_R3 0 out {V(out)/power}
--------------------$
ERROR -- Missing or invalid expression
**** RESUMING ConstPowLoad_R.cir ****
.INC "ConstPowLoad_R.als"
**** INCLUDING ConstPowLoad_R.als ****
* Schematics Aliases *
.ALIASES
V_V1 V1(+=out -=0 )
R_R3 R3(1=0 2=out )
_ _(out=out)
_ _(gnd=0)
.ENDALIASES
**** RESUMING ConstPowLoad_R.cir ****
.probe
.END
To assign a node voltage as value of a component in PSPICE, use the following command:
spice assign -v node voltage component "name" mapquest directions