void usbtmc_release(usb_dev_handle *sc)
{
- //Disable keylock, so the user doesn't have to press the 'force'-button
- usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0);
usb_release_interface(sc, 0);
}
if (!dev) {
printf("No scope found.\n");
exit(1);
- } else {
- printf("Scope found.\n");
}
usbtmc_claim(dev);
//The following code isn't really necessary, the program works