Create custom object to map signals to root-level inports using Simulink mapping mode – MATLAB getSlRootInportMap

inputMap = getSlRootInportMap('model',modelname,'MappingMode',mappingmode,'SignalName',signalname,'SignalValue',signalvalue) creates a root inport map using one of the Simulink® mapping modes. Load the model before using this function. If you do not load the model first, the function loads the model to make the mapping and then closes the model afterwards. [inputMap, hasASignal] = getSlRootInportMap('model',modelname,'MappingMode',mappingmode,'SignalName',signalname,'SignalValue',signalvalue) returns a vector of logical values specifying whether or not the root inport map has a signal associated with it. inputMap = getSlRootInportMap('model',modelname,'MappingMode','Custom','CustomFunction',customfunction,'SignalName',signalname,'SignalValue',signalvalue) creates a root inport map using a custom mapping mode specified in customfunction. Load the model before using this function. If you do not load the model first, the function loads the model to make the mapping and then closes the model afterwards. [inputMap,hasASignal] = getSlRootInportMap('model',modelname,'MappingMode','Custom','CustomFunction',customfunction,'SignalName',signalname,'SignalValue',signalvalue) returns a vector of logical values specifying whether or not the root inport map has a signal associated with it. To map signals to root-level inports using custom mapping modes, you can use getSlRootInport with the Root Inport Mapping dialog box custom mapping capability. Assign sequential index numbers, starting at 1, to the data in the MAT-file, and map this data to the corresponding inport. Assign data to ports according to the name of the root-inport block. If the block name of a data element matches the name of a root-inport block, map the data to the corresponding port. Assign data to ports according to the name of the signal on the port. If the signal name of a data element matches the name of a signal at a port, map the data to the corresponding port. Assign data to ports according to the block path of the root-inport block. If the block path of a data element matches the block path of a root-inport block, map the data to the corresponding port. Specify name of file that implements a custom method to map signals to root-level ports. This function must be on the MATLAB® path. Specify the values of the signals to map to the root inport map. For the list of supported data types for the values, see Choose a Base Workspace and MAT-File Format. A vector of logical values with the same length as inputMap. If the value is true the inputMap has a signal associated with it. If the value is false the inputMap does not have a signal associated with it and will use a ground value as an input If your custom mapping mode is not similar to an existing Simulink mapping mode, consider using the getRootInportMap function instead. Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: . Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 10:04 pm