i try to write an event marker in matlab and send it with FieldTripBuffer so I create a state "Power "
the state is created:
2015-05-04T14:50:03 - Operator set configuration
2015-05-04T14:50:03 - SignalProcessing confirmed new parameters ...
2015-05-04T14:50:03 - Application confirmed new parameters ...
2015-05-04T14:50:03 - SignalSource confirmed new parameters ...
2015-05-04T14:50:03 - Executing OnSetConfig script ...
2015-05-04T14:50:03 - Set state Running to 0
then i define the state as FTStateFromBuffer and then i try to set event to the state in matlab:
Code: Select all
if(tot_Power<0.5)
event.type = 'Running';
event.value = 1;
event.offset = 0;
event.duration = 0;
ft_write_event(filename, event);
end
Thanks you for help!