Hi everyone,
Sorry to bother again!
I'm currently facing some issues when attempting to make Bpod communicate with Bonsai.
As of now, I'm able to connect via TCP and to send bytes to the state machine to trigger a state change via SoftCode when a certain condition is met (thanks to the SendMessage node).
sma = NewStateMatrix();
sma = AddState(sma, 'Name', 'WaitingForBonsai', ...
'Timer', 0,...
'StateChangeConditions', {'SoftCode5', 'Triggered'},...
'OutputActions', {});
sma = AddState(sma, 'Name', 'Triggered', ...
'Timer', 1,...
'StateChangeConditions', {'Tup', '>exit'},...
'OutputActions', {});
However, what I'm struggling to accomplish is to have Bpod talking to Bonsai in the same way:
sma = NewStateMatrix();
sma = AddState(sma, 'Name', 'SendingBytesToBonsai', ...
'Timer', 1,...
'StateChangeConditions', {'Tup', 'Continuation'},...
'OutputActions', {'SoftCode', 4});
sma = AddState(sma, 'Name', 'Continuation', ...
'Timer', 1,...
'StateChangeConditions', {'Tup', '>exit'},...
'OutputActions', {});
Does not result in anything in the ReceiveMessage node within the same Bonsai instance.
Have you ever encountered similar problems as the one here?
Thanks in advance,
Marco