Hello collegues;
I ma trying to configure and use the USB-6525 IO board from Visual C++ 2005.
I have linked the application (Win 32 console) with the libraries nidaq32.lib and nidex32.lib.
I don´t have any errors or warnings and the application starts running, but I receive and error each time I try to modify the line configuration. The code I am using is attached below. I would also like to know where to obtain the C functions reference. I have installed all the drivers provided with the board and I can not find any information about the function DIG_Line_Config() and its use with Visual C++ 2005, for example.
I would appreciate any help.
Best Regards,
---------------------------------------------------------------------------------------------
Code used:
int activarDO (int port, int linea, char valor)
{
i16 iStatus = 0;
if((valor != 0) && (valor !=1))
{
printf("\t Error en el valor a establecer (debe ser 0 o 1)\n");
return(-1);
}
iStatus = DIG_Line_Config(NUM_TARJETA_IOS, port, linea, valor);
if(iStatus != 0)
{
printf("\t Error configurando linea \n");
return(-2);
}
return(0);
}