Test and Measurement Forum

TC08 Crash - unclean driver close.

Post any questions you may have about our current range of USB data loggers

TC08 Crash - unclean driver close.

Postby noooodlez » Wed Jun 11, 2014 12:19 pm

Hi

We are running a USB TC08 on a remote site. We have recently been having stability issues with our software (DAQFactory) which has caused an occasional crash.

I understand that if the driver isn't closed cleanly before the application closes the TC08 unit hangs. The issue I have is that a reboot doesn't seem to fix this! I tried dropping the device through Device Manager / USBDview / command line tools to no avail! The device must physically be unplugged / replugged for the PC to find the device on the USB.

This isn't ideal as the PC is 50 miles from my location!

Is there any way I can recover the unit without physically being at the location?

Thanks
noooodlez
Newbie
 
Posts: 1
Joined: Wed Oct 07, 2009 8:13 am
Location: UK

Re: TC08 Crash - unclean driver close.

Postby Karunen » Thu Jun 12, 2014 9:37 am

Hi,

As I do not have the ability to replicate the issue here I was hoping to ask you a few questions.

What language are you using?

Is it possible to call usb_tc08_close_unit (As the handle is always 1 if you have only one device connected) and then re opening device using usb_tc08_open_unit?

When the application crashes does the device keep its green light on?

Thanks,
Karunen

Technical Specialist
Pico Technology
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: TC08 Crash - unclean driver close.

Postby noooodlez » Fri Jun 20, 2014 7:48 am

Thanks for that, interesting that the handle is always 1 with one unit connected, that must be the handle that the Pico driver assigns rather than Windows.
My code always starts in DaqFactory by attempting a new connection, if this fails the code goes no further.
I will have a play around with trying to ID the device before initiating a new connection, if I can do this I may be able to switch it off.
noooodlez
Newbie
 
Posts: 1
Joined: Wed Oct 07, 2009 8:13 am
Location: UK

Re: TC08 Crash - unclean driver close.

Postby Karunen » Mon Jun 23, 2014 8:18 am

Hi,

You are correct it is the driver that assigns the handle value.

If the crash occurs would be no be best to disconnect all devices?
The handle values increments by 1 for each device connected to,
for example first device has a handle value of 1 and second device has a handle value of 2.

I look forward to hearing from you,
Karunen

Technical Specialist
Pico Technology
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am


Return to USB PC Data Loggers

Who is online

Users browsing this forum: No registered users and 0 guests