Debugging TestMode
Posted: 02 Feb 2012, 19:50
I have been using version 3684 (stable release, as far as I remember) for application development. It looks as if the P300Speller's TestMode (clicking on targets to select them) is not working in this version, or in my modified code version.
Some key settings:
* online free mode
* display text result
* TestMode
I included AppLog outputs in the click processing section of P3SpellerTask.cpp | OnClassResult() :
example output:
Some key settings:
* online free mode
* display text result
* TestMode
I included AppLog outputs in the click processing section of P3SpellerTask.cpp | OnClassResult() :
Code: Select all
while( !Display().ObjectsClicked().empty() )
{
AppLog << "Clicks were detected. \n";
Stimulus* pStimulus = dynamic_cast<Stimulus*>( Display().ObjectsClicked().front() );
if( pStimulus != NULL ){
pClickedStimulus = pStimulus;
AppLog << "Selected stimulus tag: " << pClickedStimulus->Tag() << "\n";
} else {
AppLog << "pStimulus is NULL.\n";
}
Display().ObjectsClicked().pop();
}
I would like to solve this issue in my local code version. How should I best go on from here?Clicks were detected.
pstimulus is NULL.
Clicks were detected.
pstimulus is NULL.