generate trigger pulses at specific positions of a fast moving linear stage