The response value has been displayed on the script

Dear Friends,

In my running PTB program, i ask subjects to press numbers such as "1" and "2" or characters such as "a", and "b" for responses, but when I exit the program,I found the numbers and characters were just displayed in my Matlab script, this cause some accidental error when i run the program for next subject. Do you know how to prevent the display of response into the script.

Thanks in Advance!

John
Either run the program from the command window or use ListenChar.

Genna

--- In psychtoolbox@yahoogroups.com, "john.chen78" <clh20000@...> wrote:
>
> Dear Friends,
>
> In my running PTB program, i ask subjects to press numbers such as "1" and "2" or characters such as "a", and "b" for responses, but when I exit the program,I found the numbers and characters were just displayed in my Matlab script, this cause some accidental error when i run the program for next subject. Do you know how to prevent the display of response into the script.
>
> Thanks in Advance!
>
> John
>