How to distinguish incorrect response from no response in EEG experiment

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Ubuntu
PsychoPy version (e.g. 1.84.x): 2022.2.4
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:

I have the following loop which I am trying testing the triggers of and I have prepared the following code to test if the responses are interpreted correctly and they are sent properly as triggers to EEG reader tool:

if responded:
    if respo.corr:
        ccc = 'corr'
        port.writeRegister(FIO1,65280+ int(block_nr)+4)
        ccc = 'inco'
        port.writeRegister(FIO1,65280+ int(block_nr)+5)         
    ccc = 'noresp'

What did you try to make it work?:

The code that I have prepared is not able to distinguish the incorrect response from the no response.

What specifically went wrong when you tried that?:

Do you have any clue possibly to code the no response with the following loop?

Include pasted full error message if possible. “That didn’t work” is not enough information.

Could you add information on how the responded variable is defined?