Neurobs Presentation

From SBIwiki

Jump to: navigation, search

Contents

1 - Basics

2.1 - Download and Install

2.2 - What are the different files constituting a paradigm?

3 - Useful code

3.1 - Rating scale

int largeur = 34;
int carre = 104;
int mark;
stimulus_data stim;
 
#mouse mse = response_manager.get_mouse(1);
#joystick mse = response_manager.get_joystick(1);
mouse mse = response_manager.get_mouse(1);
int max_x = display_device.width() / 2;
int min_x = -max_x;
int max_y = display_device.height() / 2;
int min_y = -max_y;
int step = (max_x-min_x)/11;
int lim_mouse = max_x-largeur/2;
#mse.set_min_max( 1, -lim_mouse, lim_mouse-1 );
#mse.set_restricted( 1, true );
horiz.set_width(largeur);
horiz.set_height(carre);
 
int c0 = min_x + display_device.width()/12;
int c1 = min_x + display_device.width()/12 + display_device.width()/3;
int c2 = min_x + display_device.width()/12 + 2*display_device.width()/3;
 
int h0 = max_y - display_device.height()/6;
int h1 = max_y - 3*display_device.width()/6;
int h2 = max_y - 2*display_device.width()/3;
 
sub get_answer begin
 mse.poll();
 mse.set_xy( 0, 0 ); 
 int timezero = clock.time();
 int timetrial=0;
 int timenow;
 int count2 =0;
loop
   int count = response_manager.total_response_count(1);
until
 (response_manager.total_response_count( 1 ) > count)||(timetrial >= 5000)
begin
 mse.poll();
 pic.set_part_x(1,mse.x());
 tr_resp.present();
 timenow = clock.time();
 timetrial = (timenow)-(timezero);
 count2=count;
end;

3.2 - MRI synchronisation

Personal tools
MEG