How to tell if your Picoscope has been disconnected(!)

Post general discussions on using our drivers to write your own software here
Post Reply
jon@ktizo.co.uk
Newbie
Posts: 0
Joined: Fri Oct 28, 2011 9:09 am

How to tell if your Picoscope has been disconnected(!)

Post by jon@ktizo.co.uk » Thu Jul 19, 2012 9:30 am

Hi,
I have an application where I need to identify if a 2205 Picoscope has been disconnected from the USB port (or if the USB port has died). I thought this would be easy, but I can't find a straightforward way of doing it.

get_unit_info (and all the other commands I've tried) seem to work quite happily without the Picoscope being connected, once the unit is opened.I guess lots of status information is stored by the driver.

Does anyone know a way of doing it?

Many thanks,
Jon.

Martyn
Site Admin
Site Admin
Posts: 3376
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: How to tell if your Picoscope has been disconnected(!)

Post by Martyn » Fri Jul 20, 2012 10:19 am

We have added a function into the driver to match our newer scopes.

Code: Select all

short ps2000PingUnit( short handle )
Zero return value indicates the device is disconnected

This command hasn't made it to the documentation yet.
Martyn
Technical Support Manager

Post Reply