xxsimGetMatlabCodeTargets - Retrieve the list of available Matlab code generation targets. Syntax: targets = xxsimGetMatlabCodeTargets() Inputs: takes no arguments. Outputs: targets = an array of structures that describes the available Matlab-Code targets. each entry of the array has the following members: name - (string) the name of the Matlab-Code target. submodelSelection - (boolean) indicates if the target needs a submodel selection. Examples: targets = xxsimGetMatlabCodeTargets(); - Returns a structure array with all available targets. Each structure contains the name of the target and the need for submodel selection. See also: xxsimGenerateMatlabCode Author: Controllab Products B.V. email: info@controllab.nl Website: http://www.controllab.nl November 2015
0001 function targets = xxsimGetMatlabCodeTargets() 0002 % xxsimGetMatlabCodeTargets - Retrieve the list of available Matlab code generation targets. 0003 % 0004 % Syntax: 0005 % targets = xxsimGetMatlabCodeTargets() 0006 % 0007 % Inputs: 0008 % takes no arguments. 0009 % 0010 % Outputs: 0011 % targets = an array of structures that describes the available Matlab-Code targets. 0012 % each entry of the array has the following members: 0013 % name - (string) the name of the Matlab-Code target. 0014 % submodelSelection - (boolean) indicates if the target needs a submodel selection. 0015 % 0016 % Examples: 0017 % targets = xxsimGetMatlabCodeTargets(); 0018 % - Returns a structure array with all available targets. 0019 % Each structure contains the name of the target and the need for submodel selection. 0020 % 0021 % See also: xxsimGenerateMatlabCode 0022 % 0023 % Author: Controllab Products B.V. 0024 % email: info@controllab.nl 0025 % Website: http://www.controllab.nl 0026 % November 2015 0027 0028 %------------- BEGIN CODE -------------- 0029 0030 if(nargin>0) 0031 error('Too many input arguments: xxsimGetMatlabCodeTargets does not expect any input arguments.'); 0032 end; 0033 0034 global xxsim; 0035 xxsimVerbose = 0; 0036 if exist('xxsim') 0037 xxsimVerbose = xxsim.verbose; 0038 end 0039 0040 if( xxsimVerbose ) 0041 fprintf('Retrieving Matlab-Code target list : '); 0042 end 0043 0044 % invoke 20-sim with the xmlrpc call 0045 targets = xrlinvoke('xxsim.simulator.getMatlabCodeTargets'); 0046 end 0047 %------------- END CODE --------------