Start/Stop logging analog input module in outputActions of state

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Start/Stop logging analog input module in outputActions of state
#1
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,
Reply


Messages In This Thread
Start/Stop logging analog input module in outputActions of state - by GabrielaF - 12-01-2018, 12:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)