[Help-gnucap] Help: error using parameters in a subcircuit
Hello, In order to serve as a reference to others users with the same problem and thus close the subject, I inform how the problem was solved. Thanks to the davis for the suggestions, in fact my distro "Mageia 5" comes with an old version of 2006, so I proceeded to compile and install the 2016 version: a) I donwloaded the sources and extracted them to a directory b) from that directory I compiled them and install them using the command # ./configure; make install everything went well but when gnucap ran out this error: gnucap: error while loading shared libraries: libgnucap.so: can not open shared object file: No such file or directory c) i conjures up indicating to ld (the linker) where is the libreria libgnucap.so this is done provisionally with: $ export LD_LIBRARY_PATH = / usr / local / lib or in a definitive way, on my distro, modifying the file $ (HOME) / .bash_profile, adding these two lines: LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: / usr / local / lib export LD_LIBRARY_PATH (it works after restarting the session) Once done this there was no problem with the parameters of the subckt ... Thank you, it's an excellent program. ___ Help-gnucap mailing list Help-gnucap@gnu.org https://lists.gnu.org/mailman/listinfo/help-gnucap
Re: [Help-gnucap] Help: error using parameters in a subcircuit
Hello again, i made a mistake > *---test circuit > Xt1 vin 0 v1 0 v2 0 tx (L1=1u L2=1u L3=10m > +K12=0.9 K13=0.9 K23=0.9) > rl1 v1 0 100k > rl2 v2 0 100k > here is the error is V vin 0 pulse 0 1.5 1m 1m 1m > V vin 0 press 0 1.5 1m 1m 1m > .print tran v (vin) v (vout) > .tran 0 5m 10u > output.plot > .end > actually I have created parameters for voltage-controlled voltage source gains and change the quotes by braces but the problem persists ... here is the new netlist *test .subckt tx (a1 a2 b1 b2 c1 c2) .param M12={K12 * sqrt (L1 * L2)} .param M23={K23 * sqrt (L2 * L3)} .param M13={K13 * sqrt (L1 * L3)} .param G12={M12/L1} .param G21={M12/L2} .param G13={M13/L1} .param G31={M13/L3} .param G23={M23/L2} .param G32={M23/L3} l1 (a3 a2) {L1} l2 (b3 b2) {L2} l3 (c3 c2) {L3} e21 (a4 a3 b3 b2) {G21} e31 (a1 a4 c3 c2) {G31} e12 (b4 b3 a3 a2) {G12} e32 (b1 b4 c3 c2) {G32} e13 (c4 c3 a3 a2) {G13} e23 (c1 c4 b3 b2) {G23} .ends *---test circuit Xt1 vin 0 v1 0 v2 0 tx (L1=1u L2=1u L3=10m +K12=0.9 K13=0.9 K23=0.9) rl1 v1 0 100k rl2 v2 0 100k V vin 0 pulse 0 1.5 1m 1m 1m .print tran v(vin) v(v1) v(v2) .tran 0 5m 10u > output.plot .end ___ Help-gnucap mailing list Help-gnucap@gnu.org https://lists.gnu.org/mailman/listinfo/help-gnucap