How to convert a quantized non periodic signal to poisson spike trains for applying for a network?

Description of problem

I’d like to use PoissonInput() to generate poisson spike trains from a quantized non periodic signals .In other words, I want to generate poisson spike trains based on rate of my input signal.

How to do it with Brian2?