Hope to properly take care of the software trigger case now.
First implementation of the acquisition thread thread_function...

Somehow I had forgotten to implement it until now !