X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/659f6954a480994415f72580df61635fba3d877f..ad9fbc05e664d9e4028ec9c17fcc7308a4524114:/rigol.c diff --git a/rigol.c b/rigol.c index 6ae9d73..5dfec41 100644 --- a/rigol.c +++ b/rigol.c @@ -104,6 +104,7 @@ int main(int argc, char **argv) //Initialize scope sc = usbtmc_initscope(); + usbtmc_claim(sc); buff = malloc (1024*1024); if (buff == NULL) { perror("malloc"); @@ -165,6 +166,7 @@ int main(int argc, char **argv) //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; }