LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mecer Parallel 2 Port Pci card 4018T cant detect (Lpt) addresses ?

Hi im currently working on a program to write to an eeprom via parallel port.

The program works ok when there is built in parallel port, But with the Pci Parallel Port  the following code does not work.

Im use Cvi 9.0.

 

int GetPrinterAddr (int PortNo)
{
 int iport;
 unsigned int wAddr;
 
 //GetCtrlVal (MainPnl, MAINPANEL_PORT_NUMBER, &Printer);
 wAddr=0x0408+(--PortNo*2);
 iport=0;
 ReadFromPhysicalMemory (wAddr, &iport, 2);
 
 return(iport);
}

 

PLease Help.

Help share your knowlegde
0 Kudos
Message 1 of 5
(3,573 Views)

All i need is some why to find the lpt 1,2,3 Base Addresses in xp.

I do have direct access to the ports But because its a pci parallel card and on xp i cant get the address from the bios.

 

Urgently need help !!

Help share your knowlegde
0 Kudos
Message 2 of 5
(3,561 Views)
Since you are using CVI, you should post to that board.
0 Kudos
Message 3 of 5
(3,556 Views)

Hey Shako,

 

Dennis is right in saying that there is a CVI board that might more relevant for your questions. In terms of accessing your pci parallel device, do you have to address the pci port and then the lines you wish to use? Their may be information in the manual for your device that would be useful for determining how to address its pins using C. Also, there is a thread regarding communicating with the parallel pins in CVI using the NI VISA driver that you may find useful: Read/Write Parallel Port

 

Hope this helps.

 

-Ben

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 4 of 5
(3,551 Views)

Thanks for the help.

I will do some more research on your suggestion Ben.

 

Help share your knowlegde
0 Kudos
Message 5 of 5
(3,530 Views)