Port MODELACCESS - DEFAULT¶
Default
Stimulation¶
DataFileSegment:
An absolute path must be provided
Only MAT and MF4 can be referenced
SignalValueSegment:
A relative path must be provided
Supported execution modes¶
See also: Specifics of time modes
Preferred time source/mode: Real-time
- Real-time:
To use real-time mode, the Test configuration in the Execution tab must be configured as the source âreal timeâ.
- Stepwise simulation time:
To use the stepwise simulation mode, the port in the Test configuration in the Execution tab must be selected and the mode set to âstepwiseâ.
Info
The following modes are not supported: Continuous simulation time
Specifics¶
To use the default model port port, you will need a âPlatform API Licenseâ for ControlDesk. You can check the licenses in the âLicensingâ tab of the dSPACE Installation Manager.
If you are using the simulation time mode, the simulation time is acquired from the variable
<activeValueDescription>/Simulation and RTOS/Simulation/SimulationTimewhich needs to be available in your model.
Configuration
The âPlatform Nameâ must always be configured so that ecu.test can access the model. Please note that this option is case-sensitive. The correct identifier can be inspected in a started ControlDesk experiment under Platforms -> Manage Platforms. All other settings are optional. In particular the setting âModel fileâ should usually be left empty since it is inherited from the test configuration. If you want to connect to an already configured and started ControlDesk, the option âAlways reload modelâ should be set to âDo not downloadâ.
Info
Real-time package references are no longer supported. Use the RTT sequence administration test step instead, or execute your own Python real-time scripts via the ExecuteTargetScript port job.
Properties đ¶
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Platform name |
âSCALEXIOâ |
string |
Name of the platform as specified in the Experiment. Alternatively the platform name in the ControlDesk Platform Management can be used. |
||
dSPACE RTT Version |
â<auto>â |
[â1.7â, â1.8â, â1.9â, â2.0â, â2.1â, â2.2â, â2.3â, â2.4â, â2.5â, â2.6â, â3.0â, â3.1â, â3.2â, â3.3â, â3.4â, â4.0â, â4.1â, â4.2â, â4.3â, â4.4â, â5.0â, â5.1â, â5.2â, â22.2â, â23.1â, â23.2â, â24.1â, â<auto>â] |
string |
Product version of dSPACE Real-Time Testing |
|
Online model query |
â |
bool |
(De-)Activates the interface for online querying of model information by the test configuration, including the list of available parameters and signals. If the property is enabled, the information is queried from the tool at runtime. If disabled, the model file is parsed instead. |
||
Model file |
uri |
Path relative to the model directory |
|||
Loading behavior on reduced compatibility |
âcancelâ |
[âcancelâ, âfix and downloadâ, âignoreâ] Display values:
|
string |
Behavior of loading on reduced compatibility between model and SCALEXIO System |
|
Always reload model |
âdownloadâ |
[âdownloadâ, âno downloadâ] Display values:
|
string |
If this setting is set to Download always (default value), an already loaded model will be unloaded and the selected model will be reloaded. If the setting is Do not download, an already loaded model will not be unloaded. ControlDesk will return an error message, if the loaded model does not correspond to the selected model. |
|
Start model |
âstartâ |
[âstartâ, âno startâ] Display values:
|
string |
Automatic startup of the model after loading |
|
Model reset behavior |
âneverâ |
[âon test startâ, âneverâ] Display values:
|
string |
Resets the model at each package start if set to âOn start of testâ. This will reload the model to the platform and reinitialize the XIL MA port. Measurement and online calibration are temporarily stopped. Automatic reset requires automatic âDownload alwaysâ to be enabled in property âAlways reload modelâ. |
|
Recording task |
âTool-Defaultâ |
string |
Recording acquisition rate to use as fallback, if there is no given acquisition rate for the test value (â*â and â?â may be used as wildcards). âTool-Defaultâ uses the first available acquisition rate. |
||
Use common recorder |
â |
bool |
Defines whether signals of this port should be recorded together with those of other ports of this tool. This guarantees a common time base and creates a single recording file. Otherwise a separate recording file is created. |
Jobs đ¶
ExecuteTargetScript¶
Loads a target script to the target system and executes it. The execution time is limited by the toolâs setting âTimeout for tool callâ. If you specify input or ouput parameters, you must create an XML configuration file with the same file name as the script. For example, âscripts/rtt_script.pyâ expects the configuration file âscripts/rtt_script.xmlâ. You can find sample configurations in the dSpace XIL examples.
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
customProperties |
{} |
object |
Custom properties for Target Script as dictionary, e.g. {âApplicationProcessorâ: âleaderApplâ}. |
||
inputParameters |
{} |
object |
Input parameters for Target Script as dictionary {âparameterNameâ: âparameterValueâ}. Only primitive data types are supported. |
||
outputParameterNames |
[] |
object |
List of output parameters to be returned. These are read from the target script after execution. To be entered as a list of strings. Only primitive data types are supported. |
||
targetScriptPath |
uri |
Absolute or relative path to target script on this machine. Relative paths are resolved relative to the workspace directory. |
Return value
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
result |
object |
Values of output parameters as dictionary {âoutputParameterâ: âvalueAfterExecutionâ}. The target script parameters to be returned need to be specified before execution with the respective job parameter. |
GetStimulationState¶
GetStatus of stimulation
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
InstanceIdentifier |
string |
Instance identifier of the stimulus of which to query the state. |
Return value
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
return |
string |
âconfigurationâ, âreadyâ, ârunningâ, âpausedâ, âfinishedâ, âstoppedâ, ânot startedâ or âunkown: <SignalGeneratorState>â |
ReadVariable¶
Read model variables
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
VariablePath |
uri |
full model path |
WriteVariable¶
Write model variables
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Value |
string |
||||
VariablePath |
uri |
full model path |