//Initialize scope
sc = usbtmc_initscope();
+ usbtmc_claim(sc);
buff = malloc (1024*1024);
if (buff == NULL) {
perror("malloc");
//Disable keylock, so the user doesn't have to press the 'force'-button
l=usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0);
+ usbtmc_release(sc);
usbtmc_close(sc);
return 0;
}