Skip to content
Snippets Groups Projects
Select Git revision
  • 0726e13a5f3e4b32722cf4d3ef191c95d1110b34
  • master default protected
  • dev_2022
  • patch-1
  • develop
  • 50-use-ubuntus-libhidapi
  • issue-highLevelDispatch
  • issue-highLevelDesign
  • issue-motorStartBug
  • issue-commandLayerDesign
  • v1.0
  • v0.4-rc.13
  • v0.4-rc.12
  • v0.4-rc.11
  • v0.4-rc.10
  • v0.4-rc.9
  • v0.3-rc.8
  • v0.3-rc.7
  • v0.3-rc.6
  • v0.3-rc.5
  • v0.3-rc.4
  • v0.3-rc.3
  • v0.3-rc.2
  • v0.3-rc.1
  • v0.3-rc
  • v0.2
  • v0.1.1
  • v0.1
28 results

hidapi64mac_proto.m

Blame
    • Tim Stadtmann's avatar
      912bb027
      Merge branch 'feature-display' · 912bb027
      Tim Stadtmann authored
      Implements overriden display-function and adapts comments to MATLAB's
      doc and help function in order to deliver a cleaner interface.
      Also, for some reason, all file-access modes in /source are marked as
      changed.
      912bb027
      History
      Merge branch 'feature-display'
      Tim Stadtmann authored
      Implements overriden display-function and adapts comments to MATLAB's
      doc and help function in order to deliver a cleaner interface.
      Also, for some reason, all file-access modes in /source are marked as
      changed.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ita_toolbox_license.m 1.29 KiB
    %% Show the license and its location;
    
    % <ITA-Toolbox>
    % This file is part of the ITA-Toolbox. Some rights reserved.
    % You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder.
    % </ITA-Toolbox>
    
    
    fid = fopen([ita_toolbox_path filesep 'license.txt']);
    funcTemplate = fread(fid, 'uint8=>char')';
    disp(funcTemplate(1:end-1))
    fclose(fid);
    fprintf(2,'********************************************************************************\n')
    disp(['*** The license can be found at ' ita_toolbox_path filesep 'license.txt ***' ])
    fprintf(2,'********************************************************************************\n')
    
    %% ask
    if usejava('desktop') %Only if jvm available (non_cluster)
        commandwindow();
        choice = questdlg('Do you agree to the terms of the license agreement? The complete license ("license.txt") can be found in the root directory of the ITA-Toolbox.','License Agreement - ITA-Toolbox:', ...
            'Yes','No','No');
        switch lower(choice)
            case 'yes'
                fprintf(2,'You accepted the ITA-Toolbox license agreement\n');
            case 'no'
                fprintf(2,'You did NOT accept to the ITA-Toolbox license agreement\n');
                error('License Agreement not accepted.')
        end
    end
    
    %% set accepted flag in preferences
    ita_preferences('license',true);