From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ISSUE: Two different serial numbers for one device in MAX?

Solved!
Go to solution

The device I am using is an agilent 34405A.  It is connected through USB to a windows XP machine.  I was running my software overnight.  When I came back I got an error that indicated that it couldn't communicate with the device.  I looked at MAX and there was a new SN in the resource name.  After I repowered the agilent, the correct SN came back.  Can someone explain to me what happened?

 

MAX Version 4.6

Agilent IO 5.5

 

0 Kudos
Message 1 of 9
(3,406 Views)

Are there maybe more than one 34405A hooked up?

 

Maybe someone borrowed the DMM?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 9
(3,390 Views)

Most likely the OS shut down the USB Port power to conserve energy when no user activity was happening.

 

You need to change the power option on the hub from windows device manager.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 9
(3,382 Views)

@JÞB wrote:

Most likely the OS shut down the USB Port power to conserve energy when no user activity was happening.

 

You need to change the power option on the hub from windows device manager.


I have to admit that I thought about it after I edited my post, but I confess I was too lazy to edit it one more time.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 9
(3,376 Views)

@billko wrote:

Are there maybe more than one 34405A hooked up?

 

Maybe someone borrowed the DMM?


 

 

 

First thing that crossed my mind, but nope to both.

0 Kudos
Message 5 of 9
(3,370 Views)

@JÞB wrote:

Most likely the OS shut down the USB Port power to conserve energy when no user activity was happening.

 

You need to change the power option on the hub from windows device manager.


 

Why would this give me a new serial number?

 

Attached is an image of MAX when the issue occured.

0 Kudos
Message 6 of 9
(3,367 Views)

@QN00 wrote:

@JÞB wrote:

Most likely the OS shut down the USB Port power to conserve energy when no user activity was happening.

 

You need to change the power option on the hub from windows device manager.


 

Why would this give me a new serial number?

 

Attached is an image of MAX when the issue occured.


Odd.  that top one isn't formatted correctly!  its a 34405A allright by mfg code and model number but it can't have been made in Taiwan twice!  (the "TW47" is duplicated) so something "Hiccupped"

 

Thats often poor grounding, inadequate supply power or badly shielded cables.  Sometime seen if JoeUser plugs in a ancient "El Cheapo" (tm) thumb drive and forces the USB 2.0 port to revert to 1.0.

 

Time to pull ot the old "FAQ

USB Plug-n-Play Devices (Windows)

In this topic we will discuss some of the common problems that have been observed using USB devices with LabVIEW on Windows operating systems.  Many of these points are also applicable to other environments but the examples will be use the Windows 7 OS.

 

FAQ 1 : My USB device stops working unexpectedly.

The first thing to look at is the OS power saving options.  There is a global trend towards developing "Green" electronics and energy star ratings are getting fairly common.  "If its not being used shut it off" is nothing new.  Cavemen learned how to bank a fire to preserve energy that would otherwise be wasted.  Likewise, the Windows OS has a power saving feature to shut down power to the USB hubs when no user activity is present.  In Automated systems this feature can cause problems since removing USB hub power will shut down the USB device.   Solution: Use the device manager to change the USB hub Power Options.

 

FAQ2: I set the power options and my device connection is still unreliable: Remember, those computer USB ports are often the cheapest that can be mounted on the chassis and share the PC system power supply to supply USB Power. Most uses of USB are temporary connections like a thumb drive or a camera.  These connections do not require high reliability since the user is right there interacting with it.  Power surges and fault tolerance at worst cause the operator to retry the data transfer.  Automated systems require a bit more robustness.  Solutions:

1) ALWAYS use an external self powered hub.  Perform your engineering due diligence and inspect the devices specifications too- If you can't find them for that device that should clue you to seek an product from a vendor that WILL publish their specs.

2) High noise environments require the use of ferrites on the USB cable- and don't buy the cheapest cable either! The cheap ones are poorly shielded.  

3) PROTECT the HUB connections-  If you have a USB2.0 device and Joe User plugs in a 1.0 device in a open slot managed by the same hub- Bingo every port on the hub may back convert to USB1.0.  WORSE there are a lot of damaged or marginally engineered USB devices out there.  Joe User's device may cause power fluctuations when it is inserted or removed from the hub just don't let it happen!

 

 

FAQ3: I am testing USB devices and the OS can't find them anymore.

This is a Plug-n-Play feature that deserves some exposure.  When you connect a P-n-P device the OS remembers its serial number in a HKEY (Hive-Key) registry entry.  This is helpful when (for example) you want a specific instrument, Say an NI-USB-6008, to show up as a DAQmx Device with VISA Alias "MyDAQ1" every time it is plugged it.  On the other hand, If you want to test a line of USB-Serial converters this can be problematic since the P-n-P driver will mount the first serial number as "COM3" and the next as "COM4" add infinitum until the enumerator controller in the registry and VISA recognized aliases get used up.  Solution: Use the Windows registry API and the Hardware Configuration API in LabVIEW to clear unused VISA Aliases and HKEY entries.   Speak with your staff IT professional about HKEY structure and possible side effects before developing a plan to edit registry entries.


"Should be" isn't "Is" -Jay
Message 7 of 9
(3,348 Views)
Solution
Accepted by topic author QN00

I have found the issue and solution to my problem.  The problem was the Agilent I was using, I reserached the firmware history of this device and it is a known issue which happened to be fixed in an update.  After flashing the firmware, I have had no issues regarding the Agilent.  Thanks for the help.

Message 8 of 9
(3,307 Views)

Excellent - and very cool for marking the solution so other people may benefit in the future.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 9
(3,293 Views)