In this paper, we incorporate a Sagnac interferometer and a PZT in a fiber-optic linear-type laser cavity. We use the Sagnac interferometer and the PZT to generate periodic cavity loss and active mode-locking, and then generate pulses. We modify the length of the Sagnac interferometer to adjust the period of the optical pulse train, in generating optical pulses of several hundred nanoseconds in width. We then compare the influence of the square wave signal and the sine wave signal given by the signal generator on the light pulse. Finally, a discussion on the influence of the environment, which includes the sound, temperature and vibration, on pulse generation is given.