mama007
2006-02-27 15:10:53 UTC
Hai,
I am trying to confure PCI-6503 ports individually. But the moment I configured the first port, all the remaining ports are going low. I have some relays controlled by DIO and they are getting switched on when the DIO's change stae.How can I prevent his from happening.
This is my code:
void _stdcall _export ConfigPort(int ByteBank,int IO_type){ int Hand_Shake = 0; short errorCode; char errorMessage[50]=""; errorCode= DIG_Prt_Config (Device, ByteBank,Hand_Shake,IO_type); // Configure Port if (errorCode < 0) { GetNIDAQErrorString(errorCode); // Get error from error code MessagePopup ("DIO Setup Error", errorMessage); // Display error flag } }
Once I configure the ports and write the required data, all ports are working fine. But it just the configuration stage that is giving trouble
Any Help....
I am trying to confure PCI-6503 ports individually. But the moment I configured the first port, all the remaining ports are going low. I have some relays controlled by DIO and they are getting switched on when the DIO's change stae.How can I prevent his from happening.
This is my code:
void _stdcall _export ConfigPort(int ByteBank,int IO_type){ int Hand_Shake = 0; short errorCode; char errorMessage[50]=""; errorCode= DIG_Prt_Config (Device, ByteBank,Hand_Shake,IO_type); // Configure Port if (errorCode < 0) { GetNIDAQErrorString(errorCode); // Get error from error code MessagePopup ("DIO Setup Error", errorMessage); // Display error flag } }
Once I configure the ports and write the required data, all ports are working fine. But it just the configuration stage that is giving trouble
Any Help....