Version 2 (modified by atorf, 5 years ago)

release 2.00 discussion…

Changes and new features planned for toolbox release version 2.00

Communication functions (USB and BT) / handle concept

New lowlevel / helper functions

  • getReplyLengthFromCmdByte.m
    Needed for USB functions, returns payload length of a reply packet to a direct command — this isn't necessary for BT, since length information is encoded into the reply packet, but USB needs this information from somewhere else (i.e. this helper lookup).
  • getVISAErrorString.m
    Returns error description from error number, needed for Fantom (which in turn seems to use VISA, an USB instrument control framework / library)
  • getLibusbErrorString.m
    Returns error description of last error that occured in libusb
  • libusb_proto.m
    Prototype file for libusb, something like a "DLL import header for MATLAB", generated from original C-header-file. Gets called from loadlibrary.
    /!\ With new MATLAB 2008a, we get a "warning: protofile outdated". Are these prototype files MATLAB version dependant? Then we might have to regenerate them (using loadlibrary -mfilename) from the C-header-files. This would be a big disadvantage for m-proto-files, but the advantages on the other hand are: They load faster, are much more reliable, produce less warnings/errors, and are recommended anyway.
  • fantom_proto.m
    see above

New sensor functions