The device numbers are assigned by MAX.
The application is a VB6 program that was originally written for PCI-DIO-96 PCI cards. Never had the issue with the PCI cards. It seems to happen when I first try to run the program after a computer login or boot.
Here is the entire initialization program:
Public Sub Initialize_DIO()
Dim I As Integer
DAQDevice = 1 'device number 1 PCI-DIO 96 For I = 0 To 5 'Ports 0-5 are outputs Status = DIG_Prt_Config(DAQDevice, I, 0, 1) 'Mode 0 Output If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If Next I 'Ports 8 and 11 are inputs Status = DIG_Prt_Config(DAQDevice, 8, 0, 0) 'Mode 0 Input If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If Status = DIG_Prt_Config(DAQDevice, 11, 0, 0) 'Mode 0 Input If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If 'Ports 6,7,9 and 10 are outputs (com enable lines) Status = DIG_Prt_Config(DAQDevice, 6, 0, 1) 'Mode 0 Output If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If Status = DIG_Prt_Config(DAQDevice, 7, 0, 1) 'Mode 0 Output If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If Status = DIG_Prt_Config(DAQDevice, 9, 0, 1) 'Mode 0 Output If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If Status = DIG_Prt_Config(DAQDevice, 10, 0, 1) 'Mode 0 Output If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If
DAQDevice = 2 'device number 2 PCI-DIO 96 For I = 0 To 11 Status = DIG_Prt_Config(DAQDevice, I, 0, 0) 'Mode 0 Input If Status <> 0 Then Call DIO_Error(Status, DAQDevice) End If Next IDAQDevice = 3 'device number 3 PCI-DIO 96 For I = 0 To 11 Status = DIG_Prt_Config(DAQDevice, I, 0, 0) 'Mode 0 Input If Status <>