%testbbox.m - Test readButtonbox() function
clear all;

%install io32() port I/O extensions
config_io;
disp('Installing io32() extensions to MATLAB')

%define address of LPT status port connection to BBox
addr=hex2dec('379');
disp('LPT status port address set to 0x379')

%call the function with 4 sec timeout
disp('Executing readButtonbox() function with 4 sec timeout')
x=readButtonbox(addr,4000)
