Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DIG_Prt_Config initializes port 0 only...err code -10007 on all others

Yesterday, the following worked, today only port 0 works. What happened???
#define DIO96 1 //located in diocommo.h
mode = 0;//no handshake
dir = 1; //output port
for(int i=0;i<12;i++)
status = DIG_Prt_Config(DIO96,port,mode,dir);
port 0 (status = 0)
ports 1-11 (status = -10007)
bookieb
0 Kudos
Message 1 of 2
(3,520 Views)
I'm not sure why you are getting an error when trying to configure the ports. Have you tried restarting the computer? Also, try to write a very simple program that all it does is configure port 2 for example to see if you still get the same error.

Brian
0 Kudos
Message 2 of 2
(3,520 Views)