image thumbnail

MIDI Controls Block

by

 

23 May 2011 (Updated )

Control Simulink® models with physical knobs, sliders, and buttons on a MIDI control surface.

rtwmakecfg()
function makeInfo = rtwmakecfg()
    % Copyright 2011 MathWorks, Inc.
    p = fileparts(which('midicontrolssfun'));
    switch computer
        case 'PCWIN64'
            makeInfo.linkLibsObjs = {fullfile(p, 'midislibw64.lib')};
        case 'PCWIN'
            makeInfo.linkLibsObjs = {fullfile(p, 'midislibw32.lib')};
        otherwise
            error('MidiControlsBlock:RtwMakeCfg','unsupported platform');
    end
end

Contact us