|
From: Anders A. <pip...@gm...> - 2019-03-05 20:01:04
|
Hi! I've started using ngspice and found that I would like to pass a value from the command line to use in the control section of a circuit description. For example: .control let mc_runs = $n .... .endc ngspice example.cir --define n=100 I've studied the documentation but to be honest it is a little confusing with all different types of variable expansions, options, settings, and environment variables. First I thought I could use "argc" and "argv" but they only seem to be used internally. Any other ideas? |