06-09-2011 05:20 AM
I hava a bluchip technology PCI-PIO data acquisition card.
I just need to access the card and further disable one of the input port.
I downloaded the dll file and called the dll with the call function library.
But i dont know the datatype to be given for the different function parameters, like for the return value as well as for the parameters.
for ex:
i called the dll C:\WINDOWS\system32\Bcdll32.dll
i got into the function BCTGetBoardId
then i have to assign the datatype of the parameters...How can i replicate the C++ attached herewith in labview 2010.
"
BCT_DWORD dwStatus;
char *szErrTxt;// Get the board id structure completed by the driver
dwStatus = BCTGetBoardId(&nPCIPIOBoardID, PCI_PIO, 0);
if (dwStatus != BCT_OK){BCTErr2Txt(dwStatus, szErrTxt);
printf(“Status: %s\n”, szErrTxt);
return(dwStatus);
}// Get the handles initialised by the driver
dwStatus = BCTInitHandle(&nOutputHandle); // Check dwStatus returned
dwStatus = BCTInitHandle(&InputHandle); // Check dwStatus returned
"
Please help me.....
Thanking you in advance.