Reading classifier output in external app
Posted: Thu Jan 16, 2014 4:47 pm
Hi,
I'm learning OpenViBE and I wanted to do a motor-imagery scenario with my own visualization. I took a "motor-imagery-bci-3-online.xml" scenario from: http://openvibe.inria.fr/motor-imagery-bci/ but instaed of "Graz visualization" at the end I've connected "Simple DSP" with "Analog VRPN Server" (print screen in the attachment).
Basing on a: http://openvibe.inria.fr/vrpn-tutorial- ... plication/ I've built my own c++ application. Everything works fine except I do not how to read data that is sent to my application. In you tutorial you have a function:
and it displays data from "Sinus oscillator". Could you tell me how can I read the data (structure) that comes to my app?
I'm learning OpenViBE and I wanted to do a motor-imagery scenario with my own visualization. I took a "motor-imagery-bci-3-online.xml" scenario from: http://openvibe.inria.fr/motor-imagery-bci/ but instaed of "Graz visualization" at the end I've connected "Simple DSP" with "Analog VRPN Server" (print screen in the attachment).
Basing on a: http://openvibe.inria.fr/vrpn-tutorial- ... plication/ I've built my own c++ application. Everything works fine except I do not how to read data that is sent to my application. In you tutorial you have a function:
Code: Select all
void VRPN_CALLBACK vrpn_analog_callback(void* user_data, vrpn_ANALOGCB analog)
{
for (int i = 0; i < analog.num_channel; i++)
{
std::cout << "Analog Channel : " << i << " / Analog Value : " << analog.channel[i] << std::endl;
}
}