Back to the main page.

Bug 444 - move the serPort in ft_omri_quality with ft_write_event

Reported 2011-01-27 09:09:00 +0100
Modified 2011-11-14 21:49:15 +0100
Product: FieldTrip
Component: realtime
Version: unspecified
Hardware: All
Operating System: All
Importance: P1 enhancement
Assigned to: Robert Oostenveld
Depends on:
See also:

Robert Oostenveld - 2011-01-27 09:09:45 +0100

the serPort implementation in ft_omri_quality should be moved to ft_write_event and merged with the already existing functionality there. /Users/roberto/matlab/fieldtrip/realtime manzana> grep -i serport *.m */*.m */*/*.m online_mri/ft_omri_quality.m: serPort = serial(cfg.serial); online_mri/ft_omri_quality.m: existPort = instrfind('Name',, 'Status', 'open'); online_mri/ft_omri_quality.m: serPort = existPort; online_mri/ft_omri_quality.m: set(serPort, 'BaudRate', cfg.baudrate); online_mri/ft_omri_quality.m: fopen(serPort); online_mri/ft_omri_quality.m: serPort = []; online_mri/ft_omri_quality.m: serPort = []; online_mri/ft_omri_quality.m: if ~isempty(serPort) online_mri/ft_omri_quality.m: fprintf(serPort, 'A'); online_mri/ft_omri_quality.m: fprintf(serPort, 'B');

Robert Oostenveld - 2011-01-27 09:10:56 +0100

Also have a look at com2event and ensure that it is documented. There is also "testing/MIDI" code which might be added and documented just like the com2event.

Robert Oostenveld - 2011-01-27 09:24:36 +0100

this bug or suggested improvement came up in the online MRI discussion on Friday 21 Januari with Stefan, Robert and Markus