12-27-2005 11:18 PM
12-28-2005 04:25 PM
12-29-2005 02:54 AM
12-29-2005 04:21 PM
@rJUn@,
I noted that you said you are using a "PPI 8255" board. National Instruments doesn't make any product by that name. Are you sure that this is a National Instruments DAQ Board? I did a Google search and found the 8255 Programmable Peripheral Interface (PPI) by IBM. Is this the card you are referring to? If it is, then you'll need to contact IBM for help in creating your DLL because you'll be making calls into a driver that is specific to IBM. Once your DLL is written, you can then look at the example program and the manual I had pointed you to for help in calling that DLL from LabVIEW. If you still have questions, please let us know and we can move from there.
Post to let us know if the DAQ card you are referring to is named something else. Thanks!
Best Regards,
Chris C
Applications Engineering
National Instruments
01-01-2006 10:43 AM
Dear Mr.Chris
Well, I am not surely know what product it is. But I have try to make the driver in c, and it works in Windows 98. Here is the driver :
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#define PORTA 0x300
#define PORTB 0x301
#define PORTC 0x302
#define PORTCW 0x303
main()
{
float data;
float data1;
int inpp, input;
outportb(PORTCW,0x82);
for(data=0;data<=255;data++);
{
outportb(PORTC,data);
data=data/51;
outportb(PORTA,3);
delay(0.00209);
outportb(PORTA,2);
delay(0.00209);
outportb(PORTA,3);
delay(0.00209);
outportb(PORTA,1);
input=inportb(PORTB);
inpp=input/51;
}
return(0);
}
But then I want to use the board with LabVIEW 7.1, so I have to convert he driver in VC++'s language because I use Windows XP. The matter is I can't do it. So, can you help me solving my problem, by converting the driver to VC++ languages, or maybe you can build the DLL from the driver for me ?
Regards,
@rJUn@
01-03-2006 11:36 AM