Browse Source

Elimina 'Script task/MoBi_instructions.m'

Giacomo Guidali 1 year ago
parent
commit
d044305733
1 changed files with 0 additions and 114 deletions
  1. 0 114
      Script task/MoBi_instructions.m

+ 0 - 114
Script task/MoBi_instructions.m

@@ -1,114 +0,0 @@
-function MoBi_instructions(contraction_task, data_subject, volume, forces, bl)
-%(sbj, ordine, blocco) 
-
-% primo giro: [forces]=Force_feedback_Owl_eyes_DEF('S02', 'O2S', 1) %
-
-
-
-% only before the first block, it requires to provide maximal forces for
-% both fingers
-% standard: [forces]=Force_feedback_Owl_eyes_DEF('S02', 'O2S', 8) 
-
-%cd C:\Users\neuro\Desktop\MoBi-P15
-cd 'C:\Users\neuro\Desktop\script_mobi_da_commentare'
-sca;
-close all;
-
-
-%% DO you want to tinker with small screen?
-tinker = 0;
-
-
-%% SCREEN SETTING
-[window, misure_schermo, screenNum, CenterX, CenterY, ifi] = MoBi_Screen_Settings_Brescia(tinker)
-%MoBi_Screen_Settings_Brescia;
-
-proporzioni_schermo = misure_schermo(4)/misure_schermo(3);
-
-%%
-delete(instrfindall);
-clear s
-
-%Set up the serial port
-s = serial('COM5'); % cambia su windows
-set(s, 'BaudRate', 115200); % set BaudRate to 115200 (as in Arduino!!!!!)
-
-% open it
-fopen(s);
-WaitSecs(2);
-
-for d = 1:2
-    MoBi_scrittura(s);
-end
-
-
-%%
-[ifi_af...
-    ifi_as...
-    ifi_nf...
-    ifi_ns] = MoBI_frames_Brescia(ifi, ifi);
-
-[onesec_af...
-    onesec_as...
-    onesec_nf...
-    onesec_ns] = MoBI_frames_Brescia(1, ifi);
-
-%% we also have a black background. let's treat it as a structre as well.
-Bk.color = [0 0 0];
-Bk.dimension = misure_schermo;
-
-
-%% INSTRUCTIONS FOR the researcher
-Screen('FillRect', window, Bk.color, Bk.dimension);
-Screen('TextSize', window, 25);
-
-        hor_alignement = round(misure_schermo(3)*0.5,0);
-        ver_alignement = round(misure_schermo(4)*0.25,0);
-
-        
-TMS_cond = contraction_task{1,1};
-
-DrawFormattedText(window,TMS_cond, hor_alignement,...
-    ver_alignement, [1 1 1]);
-
-clear hor_alignement ver_alignement 
-
-testo_sx = contraction_task{1,2};
-    
-    
-        hor_alignement = round(misure_schermo(3)*0.25,0);
-        ver_alignement = round(misure_schermo(4)*0.75,0);
-        
-        
- DrawFormattedText(window,testo_sx, hor_alignement,...
-    ver_alignement, [1 1 1]);
-       
- clear hor_alignement ver_alignement 
- 
- 
- 
- 
- 
-testo_dx = contraction_task{1,3}
-    
-    
-        hor_alignement = round(misure_schermo(3)*0.75,0);
-        ver_alignement = round(misure_schermo(4)*0.75,0);
-        
-        
- DrawFormattedText(window,testo_dx, hor_alignement,...
-    ver_alignement, [1 1 1]);
-       
- clear hor_alignement ver_alignement 
-
-[VBL]=Screen(window, 'Flip', ifi, 1);
-
-% wait for keyboard press
-WaitSecs(2)
-
-%%
- while ~KbCheck
- 
- end
-
-end