UDP

Forum for discussion on different user applications
Post Reply
adamr
Posts: 4
Joined: 14 Aug 2018, 11:25

UDP

Post by adamr » 29 Aug 2018, 16:18

I am trying to use the Cursor task and get the results into Matlab Simulink. Currently I am using the app connector and a upd receive block within simulink, but when I attach a display to the upd receive there are multiple rows of data which fluctuate between 9 rows and 18 rows. What do these rows mean and am I doing something incorrectly. I appreciate any help I can get with this.
Thanks

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: UDP

Post by mellinger » 22 Oct 2018, 11:36

As explained in the AppConnector documentation, data consists of the name of each BCI2000 state, followed with its value, plus the name of each data entry in the application module's input, followed with its value.

You might be slow in receiving AppConnector data, and thus you may sometimes receive data from two blocks rather than one.
You less likely to experience this kind of problem when selectively asking BCI2000 to send only the information you are interested in, rather than all available data. This can be done using BCI2000 Watches, as described here:
https://www.bci2000.org/mediawiki/index ... ector#NOTE

-Jürgen

adamr
Posts: 4
Joined: 14 Aug 2018, 11:25

Re: UDP

Post by adamr » 04 Dec 2018, 06:46

So, I have used the readudp.m and also the regular expression to get Signal(0,0) XXXXX and Signal(1,0) XXXXX into matlab, but these only get displayed in the command window and I would like to bring then into Simulink. I have tried using a function block in simulink, but get an error of the 'udp' class does not support code generation.
Appreciate any help,
Thanks

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Re: UDP

Post by mellinger » 04 Dec 2018, 10:39

This information may help to solve your simulink problem:
https://ch.mathworks.com/matlabcentral/ ... n-simulink

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 24 guests