LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find USB parallel port adresse

Hi,
i've a simple I2C emulator board connected to the LPT1 parrallel port, and witch works fine with a CVI application using the 0x378 LPT1 adress.
I need to implement a second parallel port, and would like my application be able to work with both LPT ports.

How can i find the LPT adress (ie 0x278) of the USB printer port ? (in Windows XP, it dos'nt appears as LPT2)

Thanks for help.
(reply may be in french, i understand well)

JMC
JMCe
0 Kudos
Message 1 of 4
(9,370 Views)
Hi!

First of all, the simplest way can be install a second parallel port device: it doesn't cost too much, and it is simple to handle...

But, if you have to use USB, you can go to the Windows configuratoion panel. Actually I don't know the path in english language, because I have my computer set in French..... You should do something like the same:

START --> Configuration (in XP the 3° line, after Programs and documents), --> Configuartion Panel --> System

Here you should open the Devices utility (step 1, I don't know the english word... once again!), you open the Device handle utility (step 1), and you open the link for "Ports", and LPT port will appear. Here, double clickin' on "LPT1" a dialog will appear, in wich you go to "Resources" (step 3). Here you can see the address of port. Now, you do the same for USB, and you choose " ....Universal Host controller....", and so on.

Anyway, look to the pictures I included.

Actually, I don't know if USB is handled like a parallel port, maybe you should know something about the protocol..... I only told you how to locate addresses.

Careful, addresses may change (
I think) from one PC to another, so don't use addresses you see in my pictures, because your PC may have different ones!!!!!

Hope it helps..... let me know if so!!!!!

Nice day,

graziano
0 Kudos
Message 2 of 4
(9,343 Views)
I have a similar question...

I have a PCI parallel port card, that adds two parallel ports to my system.

In the past, I have been able to obtain the address of the ports through CVI by reading from the BIOS memory mapped I/O addresses:

ADDRESS DESCRIPTION

0x400 COM1 BASE ADDRESS

0x402 COM2 BASE ADDRESS

0x404 COM3 BASE ADDRESS

0x406 COM4 BASE ADDRESS

0x408 LPT1 BASE ADDRESS

0x40A LPT2 BASE ADDRESS

0x40C LPT3 BASE ADDRESS

Using this method, I am able to read the correct address for LPT1, which is on my motherboard, but the addresses for LPT2 and LPT3 are returned as 0x0000.

I know the addresses are: LPT2: 0xEC98, and LPT3: 0xECB8, but I would prefer to be able to auto-detect these addresses from the OS somehow, rather than hard code them.

Has anyone done this with CVI before?
0 Kudos
Message 3 of 4
(9,311 Views)
Bonjour,
pour répondre (un peu tardivement c'est vrai), on utilise le port Usb pour un problème de place dans le PC.
Malheureusement, impossible de trouver l'adresse mémoire ! j'ai "USB printing Support", avec uniquement deux onglet : "General" (avec indication de l'emplacement utilisé :0 ), et "Pilote", mais pas d'adresse.

Pour répondre à la question PCI, il faut utiliser la base de registre, lister les sous-clef jusqu'à trouver une clé terminée par ParallelController :

"HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter\x\ParallelController" pour trouver les adresses des ports LPT (où x = 0,1 etc.),
JMCe
0 Kudos
Message 4 of 4
(9,112 Views)