NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with TestStand and ActiveX

I have a UUT that has a USB connection.  I am trying to test the USB port.  When the USB cable is attached to the UUT it shows up under device manager as a Human Interface Device.  Is there a way that TestStand can go look and see that it has shown up as a HID?  Instead of having Device Manager open and asking the operator in a message Box if it showed up?
 
 
0 Kudos
Message 1 of 4
(3,176 Views)
Hi ljark,

TestStand doesn't have any explicit methods to talk with your device manager. However, since TestStand can call code modules from just about any language, I would imagine that you would be able to write a code module in the language of your choice (LabVIEW or .NET for example) that could talk with your Windows device manager and determine whether or not your UUT is connected in some sort of Setup step.

Hope this helps ljark, have a good one!

Dan Weiland
Applications Engineer
National Instruments
www.ni.com/support
Dan Weiland
0 Kudos
Message 2 of 4
(3,162 Views)
Ok and what is the best way to get to that.  I have not dealt with ActiveX in Labview yet.
 
Thanks
 
 
0 Kudos
Message 3 of 4
(3,159 Views)
Hi ljark,

I don't have much experience with the particulars of what you'll need to access the Device Manager from a code module, whether it be in LabVIEW or otherwise. The details of that are more particular to the Windows methods you'll need to know with regards to the Device Manager.

That being said, I've done some Googling and found a couple of good resources.

You may not necessarily be using ActiveX to access the device manager. My guess is that most likely you'll be accessing .NET assemblies. Here is the link to Microsoft's help on Device Manager methods and properties:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/device_management_reference.asp

Also, I've found a small application you should be able to download that will at least have some example code that demonstrates those methods and their uses:

http://www.codeproject.com/csharp/divingsysprog3.asp

If you're programming in LabVIEW, there is a good document on our website that describes using .NET assemblies from within LabVIEW:

http://zone.ni.com/reference/en-XX/help/371361A-01/lvconcepts/using__net_with_labview/

Hope this is helpful ljark. If you have more specific questions on using .NET from LabVIEW, you may want to consider posting on the LabVIEW forums, as TestStand isn't really all that involved in the process.

Have a great day!

Dan Weiland
Applications Engineer
National Instruments
www.ni.com/support
Dan Weiland
0 Kudos
Message 4 of 4
(3,130 Views)