You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/BuildBrainFlow.rst
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,10 +62,14 @@ You are able to download jar files directly from `release page <https://github.c
62
62
Matlab
63
63
--------
64
64
65
-
To use Matlab binding you HAVE to build core module first.
66
-
After compilation of core module you will be able to open brainflow/matlab-package/brainflow folder in Matlab IDE, add examples folder to Matlab's path and run them.
65
+
Steps to setup Matlab binding for BrainFlow:
67
66
68
-
Compilation of Core module and C++ binding
67
+
- Compile Core Module, using instructions below
68
+
- Open Matlab IDE and open brainflow/matlab-package/brainflow folder there
69
+
- Add folders lib and inc to Matlab path
70
+
- If you want to run Matlab scripts from folders different than brainflow/matlab-package/brainflow you need to add it to your Matlab path too
"Ganglion Wifi", "BoardIds.GANGLION_WIFI_BOARD (4)", "-", "-", "Wifi Shield IP(default 192.168.4.1)", "any local port which is free", "-", "-", "-"
17
+
"Cyton Wifi", "BoardIds.CYTON_WIFI_BOARD (5)", "-", "-", "Wifi Shield IP(default 192.168.4.1)", "any local port which is free", "-", "-", "-"
18
+
"Cyton Daisy Wifi", "BoardIds.CYTON_DAISY_WIFI_BOARD (6)", "-", "-", "Wifi Shield IP(default 192.168.4.1)", "any local port which is free", "-", "-", "-"
19
+
"BrainBit", "BoardIds.BRAINBIT_BOARD (7)", "-", "-", "-", "-", "-", "Serial Number of BrainBit device", "Timeout for device discovery(default 15sec)"
20
20
21
21
22
22
Streaming Board
@@ -136,6 +136,7 @@ To choose this board in BoardShim constructor please specify:
136
136
- board_id: 1
137
137
- serial_port field of BrainFlowInputParams structure
138
138
- mac_address field of BrainFlowInputParams structure, if its empty BrainFlow will try to autodiscover Ganglion
139
+
- optional: timeout field of BrainFlowInputParams structure, default is 15sec
139
140
140
141
To get Ganglion's MAC address you can use:
141
142
@@ -297,6 +298,7 @@ To choose this board in BoardShim constructor please specify:
297
298
298
299
- board_id: 7
299
300
- other_info field of BrainFlowInputParams structure should contain Serial Number of BrainBit device
301
+
- optional: timeout field of BrainFlowInputParams structure, default is 15sec
Copy file name to clipboardExpand all lines: docs/UserAPI.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,3 +118,9 @@ Matlab API Reference
118
118
----------------------
119
119
120
120
Matlab binding calls C\C++ code as any other binding, it's not compatible with Octave. Use our code samples as a reference for Matlab API.
121
+
122
+
A few general rules to keep in mind:
123
+
124
+
- Use char arrays instead strings to work with BrainFlow API, it means 'my_string' instead "my_string", otherwise you will get calllib error
125
+
- Use int32 values intead enums, it means int32 (BoardIDs.SYNTHETIC_BOARD) instead BoardIDs.SYNTHETIC_BOARD, the same is true for all enums in BrainFlow API
0 commit comments