PicoScope 7 Software
Available on Windows, Mac and Linux
PicoScope 7 Software
Available on Windows, Mac and Linux
OEM & custom applications
PicoScope, Pico data logger and RF products can be used as components in custom applications and OEM projects.
A to Z of PC oscilloscopes
Everything you need to know about PC oscilloscopes from Advanced Triggers to Zooming.
A to Z of Data Loggers
Everything you need to know about PC-based data loggers from Alarms to Zooming.
Application Notes
Details of some of the many applications for Pico data logger and oscilloscope products.
How do I measure...?
Find out how you can measure using Pico products
Videos
Showing you how to get the most out of PicoScope oscilloscope software.
Documentation
Up-to-date versions of the documentation supplied with your products in PDF format.
Educational Experiments
Our library of science experiments suitable for use with oscilloscope and data logging products.
PicoApps
Want to share hints, tips and code with other developers? Show your Pico-based products to the world.
Newsletter
Archive of our monthly Test and Measurement Newsletters.
Unfortunately the manual doesn't define the format of the data that will be written to the buffer provided, just that the function outputs:details, a string buffer to receive a maximum of length characters
Presumably this will be a list of device serial numbers (that can then be passed to UsbPt104OpenUnit() to open a device), but how is the list delimited? What's the output if there are no connected devices (empty string?)?a list of all the attached PT-104 devices of the specified port type
Post by Hitesh »
Code: Select all
PICO_STATUS status;
char details[100] = {NULL};
unsigned long length = 0;
/* Other bits of code */
if(USB)
{
status = UsbPt104Enumerate(&details[0], &length, CT_USB);
printf("Units: %s\n", details);
printf("Serial Length: %d\n", length);
/* Proceed to attempt to open unit */