12-19-2005 01:08 PM
12-20-2005 11:16 AM
The first thing that I would verify is that the bus has enough power to support three DAQ Pad's. I would check the power coming off of all three USB busses and compare that to the power requirement for the DAQ Pad(s). Have you tried running with just Device 2 and still seen the same error.
Hope this helps!
Jeff Phillips
National Instruments Applications Engineer
12-20-2005 02:03 PM
These are running off of the external (brick) power supplies (3 of them) and they are connected to a 7 port USB Hub (Belkin), which is also powered by an external supply. I find it very unlikely that it is power related. The problem seems to be in the MAX/device identification process.
I have seen this behaviour on three seperate systems.
12-20-2005 02:29 PM
Is there something common that happens when your device does not work? Is this a start-up VI that runs when your computer boots up or has the computer and hardware been on for some amount of time prior to the VI starting? Also, do you have one sub-VI that initializes all three pieces of hardware or separate sub-VI's that initialize all of them. If they are separate, is there a different VI talking to each DAQ Pad or one VI all-together. If this error doesn't happen every time, then there has to be something common to the failure mode. Which version of the Legacy driver are you using?
-Jeff
12-20-2005 03:05 PM
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 I
DAQDevice = 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 <> 0 Then
Call DIO_Error(Status, DAQDevice)
End If
Next I
'Set port 1 to digital output for force alarms
Status = DIG_Prt_Config(DAQDevice, 1, 0, 1) 'Mode 0 Output
If Status <> 0 Then
Call DIO_Error(Status, DAQDevice)
End If
End Sub
12-20-2005 03:06 PM
12-20-2005 03:13 PM
Is this a start-up program that runs when the computer boots up or do you have to go to VB and then tell it to run. The reason I ask is that MAX has threads that run during start-up of the computer that take a little longer than normal threads to execute. So, start-up files that run as soon as the computer boots up often run into problems talking to MAX because the MAX start-up thread(s) aren't finished yet. They will return the unknown device error because MAX hasn't finished indexing its own files to find the name of the device. I will continue to look into this if this is not the case.
-Jeff
12-20-2005 03:19 PM
No,
The computer has been booted for some time and then I start the program. Note that it will not clear itself. I have to power down the DAQ-PAD and power it back on to get the problem resolved..
12-20-2005 03:21 PM
12-20-2005
03:53 PM
- last edited on
05-19-2025
10:47 AM
by
Content Cleaner