As seems to be the case with some USB devices, when they need to be reset you have to disconnect the USB cable from the device and plug it back it. This occurs intermittently with a couple of applications using NI-DAQmx 8.0.1 and VB6. I don't want to have the operator shutdown the app., disconnect, reconnect the cable and reload the app. If there was a way I could query the device (except when it's incommunicado of course) and determine an unstable state, or even if I could force a hardware reset from my app., I could routinely do a reset.
During program development if I terminate my app. without stopping the tasks, exiting to Windows and reloading the app. is usually enough to clean up the OS environment, but when the environment seems okay, and the 6009's LED stops flashing and returns error msgs, I'd like to be proactive. The crudest work-around would be add a relay to interrupt +5V to the module and reinitialize the 6009 after power cycling. Still, it seems like a remote reset would be best and a way to query to see if the device is still communicating, else programmatically issue the reset.
Thanks in advance for any suggestions.
Bill