Post Go back to editing

py-libiio - continuous streaming

   I am working on continuous streaming via libiio in Python. I use non-cylic buffer in loop something like this;

   

....
txbuf = iio.Buffer(txdac, number_samples, False)

initial=0
L=len(iq)

    while initial < L

    txbuf.write(iq[initial:number_samples])
    txbuf.push()

    initial=number_samples+inital
    
    ...

...

    However , each "number_samples" part of iq data corresponds to 1sec (e.g) streaming  while one loop time  is smaller than 1 sec. As a result I observe  waveform shorter time than expected.

    Is it possible to schedule continuous streaming in py-libiio?I couldn't find any scheduled streaming example  created via pyhton.

   Thanks and best regards.