LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Parallel Port settings programmatically

Solved!
Go to solution

I have a co-worker that installed a PCI based parallel port and he was wondering if he could get the port address programmatically?

 

Windows randomly assigns 090_hex?

 

Regards,

 

-SS

 

 



0 Kudos
Message 1 of 5
(3,749 Views)
Solution
Accepted by topic author ShotSimon
I believe devcon will do that.
Message 2 of 5
(3,742 Views)

Smercurio_fc,

 

devcon driverfiles =ports seems to work.

 

Thanks,

 

-SS



0 Kudos
Message 3 of 5
(3,724 Views)

Actually it's devcon resources  =ports:

 

 C:\>devcon resources  =ports
ACPI\PNP0401\4&EDE93E0&0
    Name: ECP Printer Port (LPT1)
    Device is currently using the following resources:
        IO  : 0378-037f
        IO  : 0778-077d
ACPI\PNP0501\1
    Name: Communications Port (COM1)
    Device is currently using the following resources:
        IO  : 03f8-03ff
        IRQ : 4
2 matching device(s) found.

 

 



Message 4 of 5
(3,721 Views)

The code to run this looks like this:

 

 

-SS

Message Edited by ShotSimon on 11-19-2009 09:19 AM


Message 5 of 5
(3,694 Views)