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