Parallel Port Interface Using Matlab

S

Thread Starter

Shadi Mansi

<p>I suppose that Matlab should find my parallel port when I write these instructions:
<pre>
out=daqhwinfo;
out.InstalledAdaptors

Well, this is not happening. The only messege I got was:

ans =

'winsound'
</pre>
<p>Hence, this explains why the follwing messege appears when I write:
<pre>
>>dio = digitalio('parallel','LPT1');

??? Error using ==> digitalio/digitalio
Error using ==> digitalio/digitalio
Failure to open requested data acquisition device. Class not registered.
</pre>
<p>I checked that the mwparallel.DLL is located in its place:
'C:\Matlab6p5\toolbox\daq\daq\private\mwparallel.dll'

<p>I will appreciate any help,<br>
mansi_sh@jic,edu.sa
 
hi

you should type:
daqregister('C:\Matlab7\toolbox\daq\daq\private\mwparallel.dll')

to register 'mwparallel.dll'

bye.
<morteza>
 
Hello!!!
I have tried this. I have version 6P1. So typed:

daqregister('C:\Matlab6p1\toolbox\daq\daq\private\mwparallel.dll')

But it is giving the error as

Error using ==> daqregister
Unable to load Driver C:\Matlab6p1\toolbox\daq\daq\private\mwparallel.dll The
specified module could not be found.

I had downloaded the mwparallel.dll from the internet just now.

please help i need your help very urgently
 
Change into the directory where the mwparallel.dll is located in matlab and use the same command again. Worked for me just right now. But I got the next problem then: 'PARALLEL: Could not locate WINIO.SYS device driver'

I copied the winio.dll from a newer matlabdaq version on another machine in that directory as well (same directory as above) but I can't install/register it the same way. How can I install the WINIO.DLL?

Bernie
 
F

FERI-INDONESIA

Try to check your BIOS configuration about standard port/SPP ETC, usually the problem in there...
 
A
%%THIS IS ADNAN KHAN 03142785845
parport= digitalio('parallel','LPT1');
get(parport,'PortAddress')
daqhwinfo('parallel');
addline(parport, 0:7, 'out')



dataout = logical([1 1 1 1 1 1 1 1]);
putvalue(parport,dataout);

rate=44100; time=10000000000;
set(ai,'SampleRate',rate,'SamplesPerTrigger',rate*time);


parport= digitalio('parallel','LPT1');
get(parport,'PortAddress')
daqhwinfo('parallel');
addline(parport, 0:7, 'out')



dataout = logical([0 0 0 0 0 0 0 0]);
putvalue(parport,dataout);
rate=44100; time=100000000;
set(ai,'SampleRate',rate,'SamplesPerTrigger',rate*time);
end


%%TRY THIS CODE.FOR LPT1(PARALLEL) INTERFACING %USING MATLAB.I HAVE TESTED IT.& ITS RUNNING.
%%
%
%PAF-KIET(BE ELECTRONIC)
 
this is the king
I have the same problem i can not use the parallel port of may aptop " HP nc6320". I have matlab 7.4.

commad matlab:
parport= digitalio('parallel','LPT1');

??? Error using ==> digitalio.digitalio at 93
Error using ==> digitalio.digitalio>localCreateDigitalIOObject at 185
Failure to find requested data acquisition device: parallel.

please help me
 
well...i also had the same problem. just run your matlab as administrator and try it. well, best luck... do contact me if necessary
 
hi mansi,

i'm also using parallel port in my new project with matlab. but i have new version of matlab "R2008a" you should install this first bcoz when you write port=digitalio('parallel',lpt1)
it never shows you an error.

thanks
 
Hi Bernie,

which version of Matlab are you using, as I tried the same but it is not helping me, it is showing the same error even after changing the directory.

Could you please also explain whether you solved the problem to interface through matlab?
 
R

Rajat Sharma

hi everyone,

please help. i use matlab with my laptop which doesn't have lpt port. i got usb 2 lpt cable but windows recognise it as "usb printer support" not as ordinary lpt port. matlab didn't recognise any lpt port.

thanks
 
Top