12-01-2018, 12:56 PM
Hi,
I have an analog rotary encoder for a mouse treadmill and I would like to send its signal to the analog input module of bpod.
To have timestamps that I can sync with bpod timestamps later, I thought I could start/stop logging data at the outputActions of one of my states.
For example:
sma = NewStateMatrix();
sma = AddState(sma, 'Name', 'baseline','Timer', 0.05,'StateChangeConditions', {'Tup', 'baseline'},'OutputActions', {'AnalogInput1, 1'});
SendStateMatrix(sma);
RunStateMatrix;
Do you think that's possible? If so could you send me an example code? Particularly what is the code for 'start' or 'stop' I should use at the action?
Cheers,
I have an analog rotary encoder for a mouse treadmill and I would like to send its signal to the analog input module of bpod.
To have timestamps that I can sync with bpod timestamps later, I thought I could start/stop logging data at the outputActions of one of my states.
For example:
sma = NewStateMatrix();
sma = AddState(sma, 'Name', 'baseline','Timer', 0.05,'StateChangeConditions', {'Tup', 'baseline'},'OutputActions', {'AnalogInput1, 1'});
SendStateMatrix(sma);
RunStateMatrix;
Do you think that's possible? If so could you send me an example code? Particularly what is the code for 'start' or 'stop' I should use at the action?
Cheers,