Could some Ngspice guru plase help ?

The standard procedure to measure current is to

have a voltage source with zero AC/DC voltage,

and measure current through it.

Ex:

VSENSE <node+> <node-> DC 0.0 AC 0.0

and then

.PRINT TRAN I(VSENSE)

Now suppose VSENSE is inside a sub-circuit

as:

.SUBCKT 1 2 3

….

…

VSENSE 1 0 DC 0.0 AC 0.0

…..

.ENDS

Now how do I measure current through VSENSE ?

One way to do it would be to place a similar

zero voltage external voltage source in series with

the internal voltage source and measure the current

through the external one.

I was wondering if there is anything wrong with this.

Any hints/suggestions are welcome. Thanks in

advance.