extmodeParseArgs
Extract values of configuration parameters supported by external mode abstraction layer
Description
提取配置参数的值s that are supported by the external mode abstraction layer. The function parses the array of strings passed as input arguments. The array of strings is from the command-line arguments of the executable file running on the target hardware.errorCode
= extmodeParseArgs (argCount
,argValues
);
The external mode abstraction layer interprets only two options and passes the other arguments tortIOStreamOpen
for the initialization of the communication driver.
Use this function with other external mode functions to enable communication between Simulink®and the target application during an external mode simulation.
If your target hardware does not support the parsing of command-line arguments, define the preprocessor macroEXTMODE_DISABLE_ARGS_PROCESSING
. See information about parsing command-line arguments inOther Platform Abstraction Layer Functionality.
Examples
Set Up External Mode Communication
For a pseudo-code example that shows how you can provide external mode communication by using the function with related functions, seeExternal Mode Abstraction Layer.
Input Arguments
Output Arguments
See Also
extmodeBackgroundRun
|extmodeEvent
|extmodeGetFinalSimulationTime
|extmodeInit
|extmodeReset
|extmodeSetFinalSimulationTime
|extmodeSimulationComplete
|extmodeStopRequested
|extmodeWaitForHostRequest