I'm trying to launch an exe in Python to capture data from an eyetracker, I'm using Popen and it's able to launch fine. However I'm simultaneously running a psychovisual experiment using psychopy. I'm not sure how to use Popen to synchronise the launch of both processes, I know that this has something to do with threading - and a found a useful blog on the subject here (http://zulko.github.io/blog/2013/09/19/a-basic-example-of-threads-synchronization-in-python/) however, I'm not sure how to translate this to my case as I'm new to Python. Additionally, closing the exe after my experiment is over is something that I'm not sure how to actually do
my code is roughly as follows
tracker = Popen("..\API\samples\Debug\precision_accuracy.exe".split(),stdout = PIPE) # calling exe
for i in range(stuff):
do my experiment
I'm using windows, any help at all would be massively appreciated