Search found 6 matches

by gongenhao
04 Nov 2010, 11:45
Forum: Software Development
Topic: An external application sending information to BCI2000
Replies: 11
Views: 3170

Enhao, the cursor is not controlled via the CursorPos states. Rather, its horizontal and vertical speed are controlled by the signal: Signal(0,0) controls horizontal velocity, Signal(1,0) controls vertical velocity. Velocities are scaled by the application module, such that a control signal with ze...
by gongenhao
02 Nov 2010, 11:26
Forum: Software Development
Topic: An external application sending information to BCI2000
Replies: 11
Views: 3170

You send one more character than there are characters in the string. This will result in an additional '\0' character being sent at the end of the string. Removing the "+1" from your code will probably make it work. Thanks a lot. I have correct this mistake. It works well to use'Running 0\n' to sus...
by gongenhao
28 Oct 2010, 12:53
Forum: Software Development
Topic: An external application sending information to BCI2000
Replies: 11
Views: 3170

I just write like: sprintf(sendBuf,"X %d\n",_value); sendto(_svr,sendBuf,strlen(sendBuf)+1,0,(sockaddr*)&_addrsvr,len); Is "\n" the right newline character? I tested the connector input, and found that I can send state information via UDP. Could it be that you are sending a DOS line ending rather th...
by gongenhao
26 Oct 2010, 10:26
Forum: Software Development
Topic: An external application sending information to BCI2000
Replies: 11
Views: 3170

When I send data through udp, it says 'Warning:ConnectorInput::Process: Ignoring value for non-existent' in the system log. Why? The sended states exist and can be found from BCI2000 Viewer. Thanks Enhao, BCI2000 states hold only unsigned integers, so you cannot store float values in them. To set th...
by gongenhao
25 Oct 2010, 10:29
Forum: Software Development
Topic: An external application sending information to BCI2000
Replies: 11
Views: 3170

thanks.
I will try on it~
by gongenhao
22 Oct 2010, 19:09
Forum: Software Development
Topic: An external application sending information to BCI2000
Replies: 11
Views: 3170

An external application sending information to BCI2000

Hi I am now working on sending data from an external application to BCI2000, running locally. I have read 'Technical Reference:App Connector' What I understand is I should use UDP socket to send data to certain address( local) and certain port. But I don't fully understand what should I send and how...