About WaitTill() Command

Hi, I was surprised by something. I don’t know where the WaitTill() command came from?! I found it in a book(2013). It works well on Linux, but on Microsoft Windows, it gives this error:
Unrecognized function or variable ‘WaitTill’
There is no trace of it on the web!

read the help of WaitSecs(), it has until time

Thank you for your answer. But the WaitSecs() parameter is time. But WaitTill() takes the keyboard button.

I don’t know the command. KbWait is what you are after in that case

1 Like

In Linux, it even displays the document with the help command. But Windows does not recognize such a command.
The point here is that it is much simpler and more practical than other commands

well, its not part of psychtoolbox. Type which WaitTill, find where it is and copy it to your windows machine i guess?

2 Likes

Sounds like you did not add the path for the folder where the .m file is. If you cannot locate the file, you can copy those related m files from your Linux machine, and add path, then save path for future sessions.

2 Likes

I noticed the problem. Thank you for your guidance.