... | ... | @@ -116,7 +116,7 @@ send2ClientPanel('maxTrls', totalTrialNumber); |
|
|
To see the maximum number of trials enter your variable that specifies the total number of trials for _totalTrialNumber_. It is recommended to add this at the beginning of each trial (i.e. during the ITI).
|
|
|
|
|
|
```matlab
|
|
|
send2ClientPanel('trlnr',currentTrialNumber);
|
|
|
send2ClientPanel('trlnr', currentTrialNumber);
|
|
|
```
|
|
|
To see the current trial number you can usually enter the variable that is specified for the loop (e.g. _for i=1:trial.num_, _i_ being the variable that gives you the trial number) instead of _currentTrialNumber_. If you are using a paradigm with more than one loop, you may need to define a separate variable for this. It is recommended to add this at the beginning of each trial.
|
|
|
|
... | ... | @@ -135,12 +135,12 @@ To display the percentages of correct trials, a logical vector must be entered l |
|
|
```matlab
|
|
|
if res.choice{trial,1}.badKey == par.numPeck % incorrect response
|
|
|
|
|
|
punishment(par.punDur);
|
|
|
res.incorr(trial,1) = 1; % note trial as incorrect
|
|
|
punishment(par.punDur);
|
|
|
res.incorr(trial,1) = 1; % note trial as incorrect
|
|
|
|
|
|
elseif res.choice{trial,1}.goodKey == par.numPeck % correct response
|
|
|
feeding(par.feeding,'lightDur',2);
|
|
|
res.corr(trial,1) = 1; % note trial as correct
|
|
|
feeding(par.feeding,'lightDur',2);
|
|
|
res.corr(trial,1) = 1; % note trial as correct
|
|
|
end
|
|
|
```
|
|
|
|
... | ... | @@ -154,7 +154,7 @@ initOTBR; |
|
|
clientList.client.name = 'test';
|
|
|
clientList.client.remoteIP = '192.168.1.231';
|
|
|
clientList.client.localIP = '192.168.1.188';
|
|
|
clientList.camera.device ='http://10.147.255.102/mjpg/video.mjpg';
|
|
|
clientList.camera.device = 'http://10.147.255.102/mjpg/video.mjpg';
|
|
|
clientList.camera.userName = 'admin';
|
|
|
clientList.camera.password = '1234';
|
|
|
subPanels = {'performance','paradigm','camera'};
|
... | ... | |