On Sun, 07 Aug 2005 21:14:06 GMT, Joerg wrote:
Now, if only there were a way of hooking an external program command to an LTSpice drop down menu item. Could hook this up so that the LTSpice filename is passed over, with the +c option, and that would automatically make it ready for pasting elsewhere and almost as convenient to use as possible.
Oh, just improved the +c option slightly. You can add a character to it and that character will appear at the beginning of each line in the paste buffer. I needed that for my Agent newsreader, which normally wraps the lines unless they are preceded by one of a few different characters. In my case, I'll probably use the colon (:) character, as in this example which uses a "speed up" RC in order to overcome Q2's capacitance when turning off and a diode D1 to help dump some of the excess charge on C1 also when turning off:
: PRIMARY SPECIFICATIONS : +12V +5V : .param Vbb=12V --------------------- | | : 2 supplies available, | | : .param Vcc=5V + the relay uses 10mA | | : @ 12V, ctrl is 0 to 5 --- --- : .param ILoad=10mA --------------------- - V1 - V2 : --- {Vbb} --- {Vcc} : - - : | | : DESIGN ESTIMATIONS | | : | | : .param Q1Vbe=0.6V Q1beta=200 gnd gnd : : .param Q2Vce=0.2V Q2Vbe=0.7V Q2beta=50 +12V +12V : | | +12V : .param IR2=0.1*Q2Ib | | | : | | | : --- D1 \\ | : / \\ 1N4148 / R2 | : DERIVATIVE CALCULATIONS --- \\ {R2} | : | / | : .param Q2Ic=ILoad Q2Ib=ILoad/Q2beta | | |e | | : | | | : | | \\ : RESISTOR VALUES | \\ / R3 : \\ / R5 \\ {RLoad} : .param RLoad=(Vbb-Q2Vce)/ILoad / R1 \\ 330 / : \\ {R1} / | : .param R2=Q2Vbe/IR2 / | | SIM : R4 | | | BUZZER : .param R1=(Vcc-Q1Vbe)/Q1Ie ,---/\\/\\----+---------' gnd : | 60 : | : --- : .tran 20u - V3 : --- PULSE(5 0 5u 10n 10n 5u 10u) : - : | : | : | : gnd
(V3+R4 simulate the micro's CMOS output pin.)
I think the colons look okay.
Jon