I am acquiring temperature from an external device in a small python GUI. I would like that when I push the button “Ready to start” on that GUI (see picture) , it triggers the first trial in FLOW (some text in the main psychopy window) without ending the temperature GUI.
So far ending the GUI has been the only way to start the trials in FLOW. I have included the code for the small temperature GUI in the first trial in FLOW under the field “Begin experiment”. I was hoping that adding “continueRoutine = False” as the code to be run when “Ready to Start” is pressed would do the job (see below). Apparently not. The only code that allows flow to run is “self.quit()” for the GUI appalication. And then then I cannot have a look at the temperature.
In the future, the GUI will be shown on a control screen and teh stimulus window on a stimulus screen. I will be able to have a look at the temperature or set it to another level. i am not there yet. For the moment, I would just like to trigger the first trial from the contro GUI and to keep logging temperature as psychopy experiment runs.
Should I multithread it? I have to inform that I am new to python and psychopy, but not in other programming languages. I generally use Neurobs Presentation.