Code covered by the BSD License  

Highlights from
PARALLEL PORT 'LPT'

4.5

4.5 | 8 ratings Rate this file 174 Downloads (last 30 days) File Size: 16.46 KB File ID: #12676
image thumbnail

PARALLEL PORT 'LPT'

by Diego Orlando

 

17 Oct 2006 (Updated 26 Jun 2008)

Shipment and reception of data through parallel port.

| Watch this File

File Information
Description

Shipment and reception of data through parallel port.

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

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
18 Oct 2006 edwin colana  
11 Dec 2006 asem jamal  
15 May 2007 unni k  
05 Sep 2007 Raymundo CastaƱo

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

07 Jan 2008 hadi asefi  
20 May 2008 Juan Carlos Salazar  
29 Jul 2008 Ramesh Pungle  
10 Apr 2011 Joachim

thanks

26 Apr 2011 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

Please login to add a comment or rating.
Updates
25 Feb 2008

update

29 Feb 2008

update

23 Jun 2008

update

26 Jun 2008

update

Tag Activity for this File
Tag Applied By Date/Time
electronics Diego Orlando 22 Oct 2008 08:44:07
parallel port Diego Orlando 22 Oct 2008 08:44:07
shipment Diego Orlando 22 Oct 2008 08:44:07
reception Diego Orlando 22 Oct 2008 08:44:07
data Diego Orlando 22 Oct 2008 08:44:07
matlab Diego Orlando 22 Oct 2008 08:44:07
parallel port rakesh jha 25 Dec 2008 10:26:27
data AAA AAAA 18 May 2009 16:00:50
parallel port SRINIBAS BHUYAN 01 Feb 2010 04:01:11
matlab Arief 29 May 2011 00:21:51
parallel port Alejandro Lehmann 30 May 2011 13:14:09
reception J.Rajeesh Rajeesh 27 Jun 2011 13:07:54

Contact us at files@mathworks.com