02-26-2009 07:21 AM
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.
02-27-2009 09:23 AM
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 !!
02-27-2009 09:49 AM
02-27-2009 10:39 AM
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
03-02-2009 02:47 AM
Thanks for the help.
I will do some more research on your suggestion Ben.