Jelajahi Sumber

Elimina 'Script task/TMS4Threshold_MoBi.m'

Giacomo Guidali 1 tahun lalu
induk
melakukan
bc2b62657b
1 mengubah file dengan 0 tambahan dan 145 penghapusan
  1. 0 145
      Script task/TMS4Threshold_MoBi.m

+ 0 - 145
Script task/TMS4Threshold_MoBi.m

@@ -1,145 +0,0 @@
-  function TMS4Threshold_MoBi()
-%   cd C:\Users\neuro\Desktop\MoBi-P15
-% addpath('C:\Users\neuro\Desktop\JA_DCG')
-% sca;
-% close all;
-% 
-% %% SCREEN SETTING
-% MoBi_Screen_Settings_Brescia;
-% 
-% proporzioni_schermo = misure_schermo(4)/misure_schermo(3);
-% 
-% %%
-% delete(instrfindall);
-% clear s
-% 
-% %Set up the serial port
-% s = serial('COM4'); % 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);
-% 
-% %% INSTRUCTIONS FOR the researcher
-% Screen('FillRect', window, Bk.color, Bk.dimension);
-% Screen('TextSize', window, 25);
-% 
-% 
-% % switch hem_task{1,1}
-% %     
-% %     case 'Emisfero_Sx'
-%         hor_alignement = round(misure_schermo(3)*0.5,0);
-%         ver_alignement = round(misure_schermo(4)*0.25,0);
-%         
-% %     case 'Emisfero_Dx'
-% %         hor_alignement = round(misure_schermo(3)*0.75,0);
-% %         ver_alignement = round(misure_schermo(4)*0.25,0);
-% % 
-% % end
-% 
-% TMS_side = hem_task{1,1};
-% 
-% DrawFormattedText(window,TMS_side, hor_alignement,...
-%     ver_alignement, [1 1 1]);
-% 
-% clear hor_alignement ver_alignement 
-% 
-% testo_sx = hem_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 = hem_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 
-% 
-% [ggg]=Screen(window, 'Flip', ifi, 1);
-% 
-% % wait for keyboard press
-% WaitSecs(2)
-%%
-%addpath('C:\Users\neuro\Desktop\JA_Stage1');
-
-tinker = 0
-
-ioObj = io64;
-status = io64(ioObj);
-
-% specify address where u want to send triggers
-address = hex2dec('DFB8'); %select LTP1 output port address
-io64(ioObj, address, 0); %set Trigger to zero where it allready should be!!
-
-
-[window, screen_dimensions, screenNum, CenterX, CenterY, ifi] = MoBi_Screen_Settings_Brescia(tinker);
-screen_dimensions_ratio = screen_dimensions(4)/screen_dimensions(3);
-
-Screen('FillRect', window, [0 0 0], screen_dimensions);
-
-Screen('TextSize', window, 80);
-
-DrawFormattedText(window, '+', 'center',...
-    'center', [1 1 1]);
-
-Screen(window, 'Flip');
-
-for i = 1:1000000
-    
-    [secs, keyCode] = KbStrokeWait;
-    
-    key = sum(find(keyCode));
-    
-    switch key
-        case 27 % Esc
-            sca
-             break
-        case (17+163) % Ctrl
-            
-            io64(ioObj, address, 255);
-            
-            i
-            
-            WaitSecs(0.005);
-            io64(ioObj, address, 0);
-            
-           
-            
-        otherwise
-            continue
-    end
-    
-end
-
-end