from storing data from parallelport to ana array by anish francis
storing data from parallelport to an expanding array

sineread.m
%the program reads digital  data from outside through parallel port and
%stores it in an array.
%pins 2,and  3 of the parallel port is configured for taking the input.u
%can use a digital trainer kit for runnig.5v =binary 1 and ground=0;
%compile the Delay program for delay
%developed by anishfrancis,lecturer,amaljyothi college of
%engineering.kerala  india



parport1 = digitalio('parallel','LPT1');
addline(parport1,0:1,'in');
m=addline(parport1,0:3,1,'in');
x=getvalue(m);
disp(p);
y=null(1);
for i =0 : 100
x=getvalue(parport1);  
disp(x);
y=[y x];
Delay1(1);%change integer inside the delay for time delay of  seconds.
disp(p);
stem(y);%plots the collected binary numbers
end

Contact us at files@mathworks.com