Hello Rooters,
I want to write a simple DAQ, which currently runs as a while() loop. Attached is a macro that explains my problem. When I click on start, MyDaq::start() is executed. But this never returns unless the while loop is finished.
Instead of putting the acquisition in a while loop, I am thinking of putting it in the main application event loop, which is hopefully basicly the same thing as a while loop. (Please correct me if I am wrong here.)
I already have tried using the TTimer::SingleShot() Method to start the while loop. But this crashes the program after 32000 loops or so.
Also I did use a TTimer and connected the Timout() Signal to the acquire() slot (after removing the while() statement), but unfortunatly you cannot exceed ~100Hz eventrate doing that, because of some restrictions, as far as I understand.
Does anybody know a better aproach to solve this problem. (without using different threads)?
Thank you
Lutz
testpro.c (2.76 KB)