File Exchange

image thumbnail

PARALLEL PORT 'LPT'

version 1.0.0.0 (16.5 KB) by Diego Barragán
Shipment and reception of data through parallel port.

2 Downloads

Updated 26 Jun 2008

View License

Shipment and reception of data through parallel port.

For more information, visit: http://www.matpic.com

Cite As

Diego Barragán (2021). PARALLEL PORT 'LPT' (https://www.mathworks.com/matlabcentral/fileexchange/12676-parallel-port-lpt), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Adnan khan

% MOVEMENT DETECTOR using webcam
% Get video from webcam and detect the movement.

clc
vid = videoinput('winvideo', 1);
set(vid,'TriggerRepeat',Inf);
vid.FrameGrabInterval = 5;
start(vid);
try
% media=[];
while(vid.FramesAcquired<=110) % Stop after 110 frames
IM = getdata(vid,2);
IMGray = rgb2gray(IM(:,:,1:3));
IMbw=im2bw(IMGray,0.5);
IMneg=imadjust(IMGray,[0 1],[1 0]);
subplot(2,3,1);imshow(IM(:,:,:,1));title('Input Video-Image')
subplot(2,3,2);imshow(IMbw);title('Black & White Video')
subplot(2,3,3);imshow(IMGray);title('Gray Scale Video')
subplot(2,3,4);imshow(IMneg);title('Negative Image Video')
%*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
i1=IM(:,:,:,1);
i2=IM(:,:,:,2);
i1=rgb2gray(i1(:,:,1:3));
i2=rgb2gray(i2(:,:,1:3));
m=abs(double(i1)-double(i2))/256;
subplot(2,3,5);imshow(m);title('Movement')
% sum(sum(m))
% media=[media sum(sum(m))];
if sum(sum(m))>850
disp('Movement');beep
end
%*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
end
stop(vid);
catch
stop(vid);
end

Joachim

thanks

Ramesh Pungle

Juan Carlos Salazar

hadi asefi

Raymundo Castaño

I need to configure te parallel port to send an recibe 8 bits, could you help me.
Thanks

unni k

asem jamal

edwin colana

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

6. parallel_port/