It seems you may be using the version 40 manual with version 36 software. It works with 40 and I think the "number of pulses" argument was new in 40:
commit631ff35c340a7f7289f700235573b86b14390388Author:HolgerVogt<holger.vogt@uni-due.de>Date:ThuNov2414:46:542022+0100The8thparameteronavoltageorcurrentsourcenowis'number of pulses'.PrevioususagehadbeenPHASE,introducedbyXSPICE,whichhasbeenredundanttoDELAY.PHASEisagainavailablewhencompatibilityflagxshasbeenset.
If you do not want to build from source, two single-pulse sources in series or a PWL source should work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to use PULSE voltage supply with just two pulses. I can either have 1 pulse or infinetely many pulses:
I'm using ngspice-36 from ubuntu 22.04
It seems you may be using the version 40 manual with version 36 software. It works with 40 and I think the "number of pulses" argument was new in 40:
If you do not want to build from source, two single-pulse sources in series or a PWL source should work.
Thanks