Problem with "parport=digitalio('parallel','LPT1');" in matlab.

Status
Not open for further replies.

anand_jha_30

Member level 2
Joined
Oct 29, 2010
Messages
50
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Visit site
Activity points
1,616
I wrote the following piece of code for a desktop computer having a 25 pin parallel port and was running 32 bit windows XP and it ran fine.
Now I want to run the same code on my laptop. I cant see any 25 pin parallel port here. My laptop is running 64 bit windows 7.

parport=digitalio('parallel','LPT1');
get(parport,'PortAddress');
addline(parport,0:7,'out');
dataout=logical([0 0 0 0 1 0 1 0]);
putvalue(parport,dataout);

The error message that I am getting is

??? Error using ==> digitalio.digitalio at 115
PARALLEL: Could not start the WINIO.SYS device driver.

My query is can I run parport=digitalio('parallel','LPT1'); on a laptop that has no visible parallel port. If i can then how?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…