06-05-2014 04:18 PM
There are products that do USB loopback testing or do USB diagnostics from a DOS mode boot. If I could run a utility from a DOS prompt that provided diagnostics I could parse that'd be better. Microsoft also has a utility USB View which sounds promising, but it provides status with screens and nothing parseable from what I can tell.
My challenge is to connect to an embedded system's various USB ports from the host PC conducting the tests and determine whether each of the ports is working. I need something more like an API that I can call functions from within LabView and determine programmatically whether each port is functioning. Sending some simple commands with responses would be enough. Has anyone any ideas on whether this could be done from LabView or am I facing some lengthy API function calling to accomplish this? Other approaches are also worth considering if they meet my limitations.
06-06-2014 07:52 AM
How about plugin a thumb drive, wait a few seconds and let LabVIEW scan your computer for a file on the root of the drive. If it finds it then port works, if it doesn't then it doesn't.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-06-2014 09:47 AM
Therein lies the problem. The host PC would be running LabView, but the UUT (the embedded system with USB ports to be tested) at the other end of the USB cable(s) has a proprietary kernel and therefore cannot run LabView. I need a remote solution such that the Host PC can act as hub or peripheral to accomodate the UUT's hub and peripheral mode ports. Nice try though!