Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:realtime:micromed [2013/01/30 14:59]
robert added tags
development:realtime:micromed [2017/08/17 11:21] (current)
Line 9: Line 9:
 ===== Interface with MATLAB and FieldTrip ===== ===== Interface with MATLAB and FieldTrip =====
  
-The **[[:​reference:​ft_realtime_micromedproxy]]** function implements the interface between the Micromed acquisition software and the [[:​development:​realtime:​buffer|FieldTrip buffer]]. Using the tcp_udp_ip toolbox, it implements the TCP server to which the Micromed acquisition software can connect. Once the connection is made, **[[:​reference:​ft_realtime_micromedproxy]]** ​starts reading ​the header information (number of channels and sampling frequency) and subsequently the data. The data that is streaming from the Micromed acquisition software is written ​to the FieldTrip buffer. Interfacing Matlab and/or FieldTrip to the realtime Micromed ECoG data stream therefore is as simple as starting the **[[:​reference:​ft_realtime_micromedproxy]]** in one Matlab ​instance, configure the Micromed acquisition software to send the data to that computer, and in another ​Matlab session ​use the functions:+The **[[:​reference:​ft_realtime_micromedproxy]]** function implements the interface between the Micromed acquisition software and the [[:​development:​realtime:​buffer|FieldTrip buffer]]. Using the tcp_udp_ip toolbox, it implements the TCP server ​on port 5000 to which the Micromed acquisition software can connect. ​In the Micromed acquisition software, you have to specify the computer on which MATLAB and **[[:​reference:​ft_realtime_micromedproxy]]** are running.  
 + 
 +Once the connection is initiated by the Micromed acquisition software, **[[:​reference:​ft_realtime_micromedproxy]]** ​will receive ​the header information (number of channels and sampling frequency) and subsequently the data. The header and subsequent ​data that is streaming from the Micromed acquisition software is copied over to the FieldTrip buffer. ​ 
 + 
 +Interfacing Matlab and/or FieldTrip to the realtime Micromed ECoG data stream therefore is as simple as starting the **[[:​reference:​ft_realtime_micromedproxy]]** in one MATLAB ​instance, configure the Micromed acquisition software to send the data to that computer, and in another ​MATLAB instance (which can run on yet another computer) ​use the functions:
  
   ft_read_header(filename)   ft_read_header(filename)
Line 20: Line 24:
  
 as the filename to the reading functions. as the filename to the reading functions.
 +
  
 ===== License and access to the source code ===== ===== License and access to the source code =====