void do_plot (struct usb_dev_handle *sc);
void do_get_buf (struct usb_dev_handle *sc);
void do_get_screen(struct usb_dev_handle *sc);
+void do_display_screen(struct usb_dev_handle *sc);
//Disable keylock, so the user doesn't have to press the 'force'-button
l=usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0);
- //Free up and exit
- usb_release_interface(sc,0);
- usb_close(sc);
+ usbtmc_close(sc);
return 0;
}
fprintf (stderr, "Do you have permission on the USB device?\n");
exit (1);
}
- if (chars2int(buff)!=0x40004dc) {
+ if (chars2int(buff)!=0x40005dc) {
fprintf(stderr,"Init: buff[%i]=%x\n",r,chars2int(buff));
}
return dev;
}
+
+void usbtmc_close(usb_dev_handle *sc)
+{
+ //Free up and exit
+ usb_release_interface(sc,0);
+ usb_close(sc);
+}
int usbtmc_sendscpi(usb_dev_handle *dev, char* cmd, unsigned char *resp, int resplen);
usb_dev_handle* usbtmc_initscope(void);
+void usbtmc_close(usb_dev_handle *sc);