Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Accesing and programming USB-6525 in Visual C++ 2005

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);
}

0 Kudos
Message 1 of 1
(3,478 Views)