Replace core.wait to not halt the code

Hi all,
I’m having an issue and I can’t find an answer after my search.

My code use is based on TR reading (rti.nread) to execute things. At the moment I have one rti.nread per second.

For each of my trial (36 seconds total) I have one instruction (2 seconds) before showing the pictures (24 seconds) and a fixation cross (10 seconds).

My problem is that I used core.wait(2) to set up the presentation time but I noticed It halts the rti.nread as well and then everything goes faster in the script to catch up with the wasted Wait time.

What’s the solution for not halting my rti.nread?

Thank you very much in advance