Discussion:
DAQ-PAD 6508 initialization
(too old to reply)
MAINEiac
2005-12-19 19:41:07 UTC
Permalink
I have a problem with initialization for a set of (3) DAQ PAD 6508 modules. Sometimes (not always) the module assigned as device 2 does not read the address (identifier string) correctly, This results in a error with code 10401 when I start the application. I am using legacy drivers since this system needs to be compatible with another machine that is using PCI cards. i have two identical setups that have the same problem. It is not the 6508, as changing it does not eliminate the problem. When this occurs, simply powering down the offending module and powering it back up usually recitifies the situtation. It never happens to device 1 or 3, only 2. When you look in the explorer, the device ID is scrambled, like the bytes have been flipped.
 
Ideas?
Jeffrey P
2005-12-20 17:40:57 UTC
Permalink
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 PhillipsNational Instruments Applications Engineer
MAINEiac
2005-12-20 20:10:59 UTC
Permalink
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.
 
MAINEiac
2005-12-20 21:11:27 UTC
Permalink
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 <&gt
Huzach
2006-01-31 04:10:54 UTC
Permalink
No, even then device2 does not work if attached with the hardware that m testing through this. there is nothin wrong with the hardware as i have used the same setup for device1 n it works perfectly fine.
if i use device2  without any hardware attahced, then it works fine, no blinks. but otherwise it gives error 10401 plus 3 blinks although the external power is working fine.
MAINEiac
2005-12-20 21:11:27 UTC
Permalink
Here is the rest, post was limited to 5000 characters.
 
Device 2 is returning a 10401, unknown device.
 
If you open MAX, Device 2 is there but the serial number is scrambled. If you switch the power off and on on device 2, MAX will then recognize the correct serial number and the program will run. I am running NI-DAQ 7.
 
I have tried changing the DAQ-PAD, but the problem still occurs.
 
Thanks for the help.
MAINEiac
2005-12-20 21:41:18 UTC
Permalink
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..
Jeffrey P
2005-12-20 22:10:57 UTC
Permalink
I'm curious if this is caused by a conflict between the drivers.  Can you uninstall both Traditional (Legacy) DAQ and DAQmx via the Add/Remove Programs from the control panel.  After that, I would install just Traditional DAQ 7.4.1.  Here is a link.
 
<a href="http://digital.ni.com/softlib.nsf/websearch/3DBF3D343476A28F8625709E006A4937?opendocument&amp;node=132060_US" target="_blank">http://digital.ni.com/softlib.nsf/websearch/3DBF3D343476A28F8625709E006A4937?opendocument&amp;node=132060_US</a>
&nbsp;
Install just this Traditional driver and see if your behavior is repeated.&nbsp; This will either eliminate the driver from the picutre or target the driver as the problem.&nbsp; Also, be sure that the DAQ Pad's are not connected to the computer during the uninstall/reinstall process.
-Jeff P.
Jeffrey P
2006-01-03 21:41:35 UTC
Permalink
No problem!&nbsp; Please let us know if there is anything else that we can do!
Jeff P.National Instruments Applications Engineer
beeuwke
2006-06-08 08:10:11 UTC
Permalink
Hi,
I was having the same problems&nbsp;when using&nbsp;only&nbsp;one Daqpad 6508. I installed NI-DAQ 7.4 and I didn't see the problem again (which gave error code -10401). Let's hope this solved this issue. I was obligated to use NI-DAQ 7.4 because we are still using Labview 6.1. NI-DAC 7.4.1 doesn't support this anymore.&nbsp;Is NI-DAC 7.4&nbsp;ok for solving this?
The problem I still have now is the following: When the Daqpad is powered down and powered up (by removing&nbsp;the&nbsp;power cable), I see the 'device configured' led blinking at a rate of 3 blinks. When I run my application, it doesn't give any errors but the DAQPAD doesn't work (it doesn't configure the IO's). When I then plug the USB cable In and out or when&nbsp;I switch&nbsp;the daqpad&nbsp;on and off, the "device configured" led lits up and&nbsp;I can use it again.
Any idea what is causing this? Any advice?
thanks a lot...
best regards,
Marino
beeuwke
2006-06-12 07:10:09 UTC
Permalink
Hi Laura,
&nbsp;
thanks for the response,
&nbsp;
What I'm seeing is the following:
The DAQPad is working fine (the external power is connected).
When the external power is disconnected, the "device configered" led start to blink at a 3 led blinks rate.
When I apply the external power again, it&nbsp;remains in that state (3 led blinks). Shouldn't this come back to normal so I can&nbsp;communicate with it again?&nbsp;It doesn't come back to normal until I plug the USB cable in and out.
&nbsp;
Is that normal behavior?
&nbsp;
thanks,
&nbsp;
kind regards,
Marino
Laura F.
2006-06-13 15:10:12 UTC
Permalink
Hello Marino,
Once the DAQPad has entered this state, it must be power cycled before it will resume communication.&nbsp; One way to power cycle the unit is to disconnect the USB cable, and the other way is to use the switch on the back of the unit.&nbsp;
Regards,
Laura

Huzach
2006-01-31 04:40:58 UTC
Permalink
Device 2 works fine&nbsp;if it is not attached with any hardware otherwise it start giving 3 blinks.
There is nothing wrong with the hardware also, as i have used another DAQ-Pad 6508 (device 1) with the same setup and it works perfectly fine.
Tom W [DE]
2006-01-31 20:10:51 UTC
Permalink
Hi Huzach-
&nbsp;
I'm a bit unclear on which situations the DAQpad fails in.&nbsp; Does the same device always fail?&nbsp; Do both devices work independently?&nbsp; What do you mean when you say "
There is nothing wrong with the hardware also, as i have used another DAQ-Pad 6508 (device 1) with the same setup and it works perfectly fine." ?&nbsp; Does this mean that the first device works properly but the second never does?&nbsp; If you can clear up the exact situations where the devices work and where they don't it will make it much easier to troubleshoot the problem.
&nbsp;
Thanks-
Tom W [DE]
2006-02-07 14:10:44 UTC
Permalink
Hi Huzach-
Glad to hear you got everything working- let us know if you run into anything else.:smileyhappy:
Loading...