Hi Josh,
Thank you, yes it helps but I still don't get what I want.. I tried these lines:
sma = AddState(sma, 'Name', 'LeftPoke', ...
'Timer', 1,...
'StateChangeConditions', {'Tup','Port1In'},...
'OutputActions', {'BNC1', 1});
sma = AddState(sma, 'Name', 'RightPoke', ...
'Timer', 1,...
'StateChangeConditions', {'Tup','Port3In'},...
'OutputActions', {'BNC2', 1});
What should I write..?
Samira