Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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: 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: 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: 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: 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: 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: 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

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.

Contact us