QTimer working slow with BCI2000
Posted: 22 Mar 2013, 12:10
Hi,
We are trying to study the changes in EEG power levels with different levels of Cognitive Load. For the same, I am trying to develop a new Application in BCI2000. It is the n-Back Test which is widely used to impose Working Memory Load on the subject.
So far I have developed the nBackTest same in C++ using the Qt framework and it works fine. You can check the video at http_nospam_youtu.be/pJvp2SNvOrk (watch in HD to see the text clearly)
I wanted to integrate the same in BCI2000 and I thought I would exploit class inheritance features in C++ for the same.
So in the BCI2000 ApplicationFilter, I inherit my nBackTest class, create objects of the same and call the respective methods. One of these
methods in the nBackTest class is QTimer Slot which is called every 500 ms to update the display and show characters.
However, I notice a significant Time lag in the timer slot function call when implemented with BCI2000. I have compiled BCI2000 using system Qt (v4.8.4) and I checked the operator source code which also uses QTimer slots to handle timing. You can check video at http_nospam_youtu.be/trg836Di8YY
I have tried QTimerEvent, Single Shot timer but could not resolve this issue. It would be great if someone could help me resolve this issue.
Regards,
Kedar.
We are trying to study the changes in EEG power levels with different levels of Cognitive Load. For the same, I am trying to develop a new Application in BCI2000. It is the n-Back Test which is widely used to impose Working Memory Load on the subject.
So far I have developed the nBackTest same in C++ using the Qt framework and it works fine. You can check the video at http_nospam_youtu.be/pJvp2SNvOrk (watch in HD to see the text clearly)
I wanted to integrate the same in BCI2000 and I thought I would exploit class inheritance features in C++ for the same.
So in the BCI2000 ApplicationFilter, I inherit my nBackTest class, create objects of the same and call the respective methods. One of these
methods in the nBackTest class is QTimer Slot which is called every 500 ms to update the display and show characters.
However, I notice a significant Time lag in the timer slot function call when implemented with BCI2000. I have compiled BCI2000 using system Qt (v4.8.4) and I checked the operator source code which also uses QTimer slots to handle timing. You can check video at http_nospam_youtu.be/trg836Di8YY
I have tried QTimerEvent, Single Shot timer but could not resolve this issue. It would be great if someone could help me resolve this issue.
Regards,
Kedar.