Get The Manufacturer String from a USB device.
[manufacturer_string,manufacturer_success]=bulk_get_manufacturer()
Get the Manufacturer string of an USB Device
clc VendorID="04D8"; ProductID="0204"; VendorID=uint16(hex2dec(VendorID)); ProductID=uint16(hex2dec(ProductID)); init_success=bulk_init(); if ( init_success < 0 ) then disp("unable to initialize the Libusb-1.0 Library"); return else disp("Libusb-1.0 Library initialized"); end open_success=bulk_open(VendorID,ProductID); if ( open_success < 0 ) then disp("unable to open device"); return else disp("Device Open"); end [manufacturer_string,manufacturer_success]=bulk_get_manufacturer() if ( manufacturer_success < 0 ) then disp("unable to get manufacturer string"); close_success=bulk_close(); exit_success=bulk_exit(); return else disp(manufacturer_string); end close_success=bulk_close(); if ( close_success < 0 ) then disp("unable to closed device"); else disp("device closed"); end exit_success=bulk_exit(); if ( exit_success < 0 ) then disp("unable to free static data associated with Libusb-1.0 Library"); return else disp("Libusb-1.0 Library have been freed all of the static data associated"); end | ![]() | ![]() |