Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Unable to create digitalio object for parallel port

Subject: Unable to create digitalio object for parallel port

From: Levy

Date: 26 Apr, 2008 22:06:02

Message: 1 of 7

Hi, Folks,

Why do I get the error message:

"??? Error using ==> digitalio.digitalio at 93
Error using ==>
digitalio.digitalio>localCreateDigitalIOObject at 187
Failure to open requested data acquisition device."

after the following command sequence?

------------------------------------------------------
>> daqhwinfo

ans =

          ToolboxName: 'Data Acquisition Toolbox'
       ToolboxVersion: '2.11 (R2007b)'
        MATLABVersion: '7.5 (R2007b)'
    InstalledAdaptors: {3x1 cell}

>> ans.InstalledAdaptors

ans =

    'nidaq'
    'parallel'
    'winsound'

>> dio=digitalio('parallel','lpt1')
??? Error using ==> digitalio.digitalio at 93
Error using ==>
digitalio.digitalio>localCreateDigitalIOObject at 187
Failure to open requested data acquisition device.
-----------------------------------------------------------

Another thing related: the simulink digital output block
does not show the parallel port.

Before someone suggests: I'm an administrator user and the
winio starts up on boot!

Thanks in advance!

Subject: Re: Unable to create digitalio object for parallel port

From: Vihang Patil

Date: 28 Apr, 2008 06:06:07

Message: 2 of 7

"Levy " <levy@pssolucoes.com.br> wrote in message
<fv090a$27m$1@fred.mathworks.com>...
> Hi, Folks,
>
> Why do I get the error message:
>
> "??? Error using ==> digitalio.digitalio at 93
> Error using ==>
> digitalio.digitalio>localCreateDigitalIOObject at 187
> Failure to open requested data acquisition device."
>
> after the following command sequence?
>
> ------------------------------------------------------
> >> daqhwinfo
>
> ans =
>
> ToolboxName: 'Data Acquisition Toolbox'
> ToolboxVersion: '2.11 (R2007b)'
> MATLABVersion: '7.5 (R2007b)'
> InstalledAdaptors: {3x1 cell}
>
> >> ans.InstalledAdaptors
>
> ans =
>
> 'nidaq'
> 'parallel'
> 'winsound'
>
> >> dio=digitalio('parallel','lpt1')
> ??? Error using ==> digitalio.digitalio at 93
> Error using ==>
> digitalio.digitalio>localCreateDigitalIOObject at 187
> Failure to open requested data acquisition device.
> ---------------------------------------------------------
--
>
> Another thing related: the simulink digital output block
> does not show the parallel port.
>
> Before someone suggests: I'm an administrator user and
the
> winio starts up on boot!
>
> Thanks in advance!

Hello
I cannot comment on the error above, but if you intend to
use parallel port for data acq. Then I might suggest you
to use this uility found here
(http://www.usd.edu/~schieber/psyc770/IO32.html). Its very
fast and doesnt require you to have the DAQ toolbox
installed.
HTH
Vihang


Subject: Re: Unable to create digitalio object for parallel port

From: Vihang Patil

Date: 28 Apr, 2008 06:19:02

Message: 3 of 7

The above link got disturbed due to "()", The corrected
link posted here

http://www.usd.edu/~schieber/psyc770/IO32.html

Vihang

Subject: Re: Unable to create digitalio object for parallel port

From: Sherryl Radbil

Date: 28 Apr, 2008 11:59:02

Message: 4 of 7

Log in as the administrator of the PC, run MATLAB and execute:

daqregister('parallel')

If this succeeds it means the parallel adaptor was
successfully registered and you can log out, log in as
yourself and continue working with the parallel adaptor.

Sherryl

Subject: Re: Unable to create digitalio object for parallel port

From: Levy

Date: 28 Apr, 2008 12:36:01

Message: 5 of 7

Hi, Sherryl,

It still doesn't work. That's what I've got.

--------------------------------------------------------
>> daqregister('parallel')

ans =

'mwparallel.dll' successfully registered.

>> DIO=digitalio('parallel','lpt1')
??? Error using ==> digitalio.digitalio at 93
Error using ==>
digitalio.digitalio>localCreateDigitalIOObject at 187
Failure to open requested data acquisition device.
---------------------------------------------------------

That happens in two toshiba laptops(one A45 and one A20).
In the desktops, there is no problem!

Thank you!

Subject: Re: Unable to create digitalio object for parallel port

From: Levy

Date: 28 Apr, 2008 12:37:01

Message: 6 of 7

Thank you, Vihang,

I am going to try this right now!

Subject: Re: Unable to create digitalio object for parallel port

From: Mas Imet

Date: 23 Jun, 2008 10:21:02

Message: 7 of 7

I also got the same problem and I'm still waiting for
others solution using DAQ Toolbox in Matlab.

Another point I noted:
InstalledBoardIds: {1x0 cell}
In other PC that digitalio can work, the ID should be a
value, not an empty cell.

Hope experts can post your suggestion here.

TQ
Masimet

FYI, I'm using notebook, WinXP SP2.

>> daqsupport
----------Available hardware: ----------
          ToolboxName: [1x24 char]
       ToolboxVersion: '2.9 (R2006b)'
        MATLABVersion: '7.3 (R2006b)'
    InstalledAdaptors: {2x1 cell}

----------Adaptor List----------
    'parallel'
    'winsound'
----------Registering adaptor: parallel----------
Successfully registered parallel adaptor
adaptorInfo =
           AdaptorDllName: [1x69 char]
        AdaptorDllVersion: [1x12 char]
              AdaptorName: 'parallel'
               BoardNames: {[1x25 char]}
        InstalledBoardIds: {1x0 cell}
    ObjectConstructorName: {0x3 cell}

----------Adaptor DLL Name----------
C:\Program
Files\MATLAB\R2006b\toolbox\daq\daq\private\mwparallel.dll


Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mex io parallel port Vihang Patil 28 Apr, 2008 02:10:12
parallel port problem Levy 26 Apr, 2008 18:10:06
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics