Changes

Jump to navigation Jump to search
2,754 bytes added ,  10:31, 25 March 2015
no edit summary
Line 1: Line 1:  
= Balance board =
 
= Balance board =
 +
{|
 +
|-
 +
| [[File:eyelink.jpg|200px|Image: 200 pixels]]
 +
|}
    
== Introduction ==
 
== Introduction ==
Line 12: Line 16:     
The pressure sensors derive directly from the wii balance board. Each sensor has a maximum pressure of 120Kg. In-house electronics is build to get a clean amplification from the sensors. A National instruments card, USB-6221, takes care of the A/D conversion and connects with usb to a pc. The force plate can be integrated into existing systems for stimulus presentation and for recording bodily signals such as EEG, EMG and heart rate. In practice, this means that the systems are time-locked within millisecond accuracy.
 
The pressure sensors derive directly from the wii balance board. Each sensor has a maximum pressure of 120Kg. In-house electronics is build to get a clean amplification from the sensors. A National instruments card, USB-6221, takes care of the A/D conversion and connects with usb to a pc. The force plate can be integrated into existing systems for stimulus presentation and for recording bodily signals such as EEG, EMG and heart rate. In practice, this means that the systems are time-locked within millisecond accuracy.
 +
 +
== Technical design ==
 +
{|
 +
|-
 +
| [[File:eyelink.jpg|200px|Image: 200 pixels]]
 +
|}
 +
 +
== National instruments settings ==
 +
{|
 +
|-
 +
| [[File:eyelink.jpg|200px|Image: 200 pixels]]
 +
|}
 +
 +
== Presentation software ==
 +
<nowiki>
 +
sub runtrials_national begin
 +
# The dio_device will setup NI-DAQmx device number 1 "Dev1"
 +
dio_device card = new dio_device(ni_dio_device, 1, 0 );
 +
#int id = card.acquire_analog_input( "MyVoltageOutTask" );
 +
int id1 = card.acquire_analog_input( "ForceMeasurement,Voltage_0" );
 +
int id2 = card.acquire_analog_input( "ForceMeasurement,Voltage_1" );
 +
int id3 = card.acquire_analog_input( "ForceMeasurement,Voltage_2" );
 +
int id4 = card.acquire_analog_input( "ForceMeasurement,Voltage_3" );
 +
count_old = response_manager.total_response_count();
 +
loop
 +
until false
 +
begin
 +
if response_manager.total_response_count() > count_old then
 +
count_old = response_manager.total_response_count();
 +
calibrate_board = true;
 +
end;
 +
message_scale[1] = round(round(card.read_analog( id1, 1000.0 ),6) * 1000.0, 0);
 +
message_scale[2] = round(round(card.read_analog( id2, 1000.0 ),6) * 1000.0, 0);
 +
message_scale[3] = round(round(card.read_analog( id3, 1000.0 ),6) * 1000.0, 0);
 +
message_scale[4] = round(round(card.read_analog( id4, 1000.0 ),6) * 1000.0, 0);
 +
if calibrate_board then
 +
zero_scale_left_up = message_scale[left_up];
 +
zero_scale_left_down = message_scale[left_down];
 +
zero_scale_right_up = message_scale[right_up];
 +
zero_scale_right_down = message_scale[right_down];
 +
calibrate_board = false;
 +
end;
 +
message_scale[left_up] = message_scale[left_up] - zero_scale_left_up;
 +
message_scale[left_down] = message_scale[left_down] - zero_scale_left_down;
 +
message_scale[right_up] = message_scale[right_up] - zero_scale_right_up;
 +
message_scale[right_down] = message_scale[right_down] - zero_scale_right_down;
 +
t_scale11.set_caption(string(message_scale[left_up]));
 +
t_scale11.redraw();
 +
t_scale22.set_caption(string(message_scale[left_down]));
 +
t_scale22.redraw();
 +
t_scale33.set_caption(string(message_scale[right_up]));
 +
t_scale33.redraw();
 +
t_scale44.set_caption(string(message_scale[right_down]));
 +
t_scale44.redraw();
 +
pos_dot_x = (message_scale[right_up] + message_scale[right_down]) - message_scale[left_up] + message_scale[left_down]);
 +
pos_dot_y = (message_scale[left_up] + message_scale[right_up]) - message_scale[left_down] + message_scale[right_down]);
 +
p_balance.add_part( balance_pos, (pos_dot_x * 1.0), (pos_dot_y * 1.0));
 +
t_coord.set_caption(string(pos_dot_x)+","+string(pos_dot_y));
 +
t_coord.redraw();
 +
p_balance.present();
 +
p_balance.remove_part( 8 );
 +
end;
 +
card.release_analog_input( id1 );
 +
card.release_analog_input( id2 );
 +
card.release_analog_input( id3 );
 +
card.release_analog_input( id4 );
 +
end;
 +
</nowiki>
 +
== Python software ==

Navigation menu