Port MODELACCESS - Default¶
Model access
Stimulation¶
The following LabCar-side restrictions apply:
Up to version 3.7.9, only STI 1.0 can be used for stimulation.
As of version 3.7.10, STI 2.0 is also supported.
The SignalValueSegment is not supported.
Only DAT and MAT files compatible with LabCar can be used as file reference.
Only ‘forward’ and ‘linear’ interpolation methods are supported.
It is mandatory to specify a stimulation task in the test bench configuration. Thereby the use of wildcards (* and ?) is not possible!
The value for “duration” must not be +INF, but must be set to a concrete numeric value.
Restrictions:
不支持激励输入信号。
由 STI 文件中的 DataFileSegment 引用的 Trace 文件不会由 ecu.test 自动转换。
用户需要自行检查所使用的 Trace 格式是否受该工具支持。
Supported execution 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’.
Info
The following modes are not supported: Stepwise simulation time, Continuous simulation time
Properties 🛈¶
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
Model file |
string |
Model file (.eew) |
|||
Default acquisition rate |
‘Tool-Default’ |
string |
Declaration of the measurement acquisition rate for signal recordings used as alternative in case no acquisition rate is set in the test step (’*’ and ‘?’ can be used as wildcard). “Tool-Default” activates the use of the standard acquisition rate of the tool. For reading signals, “Asynchronous RTPC Access” is always chosen. |
||
SMF files |
string |
List of paths of the SMF files which should be used (empty if no SMF files available). Paths can be absolute, relative to the model directory or relative to the tool host base path. |
|||
Parameter file paths |
string |
List of absolute paths of parameter files *.dcm and *.mpa to use (leave empty to use none). Paths can be absolute, relative to the model directory or relative to the tool host base path. |
|||
Bypass reading buffer |
☑ |
bool |
If this option is set to True, all variables will be read directly from the real-time platform. However, if set to False, accessible values will be read over the LCO buffer. This speeds up the reading process (lower workload) but leads to less accurate values because the buffer is only updated every few (ca. 100) milliseconds. |
||
Stimulation task |
string |
Stimulation task, that is used for playback of signal generators. |
|||
Switch signals before stimulation |
☑ |
bool |
Determines whether signals are switched to use the signal generator before or after starting the signal generator. True means before, False means after. |
||
Explicitly address Inports |
☐ |
bool |
If set to “True”, “const” and “mode” suffixed elements will be inserted in to the model tree for each inport. Using those elements underlying inport signals can be manipulated explicitly. The implicit inport manipulations remain unaffected. |
||
Device used by signal generators |
‘RTPC’ |
string |
Name of the device used for uploading signal generators. |
Jobs 🛈¶
GetFilenamesOfLastRecording¶
Returns the file paths of the last recording.
Parameterization
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
fileNames |
object |
File path list of the recording files. Can be empty. |
LoadParameterFile¶
Loads values from a parameter file into the experiment
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FilePath |
string |
Path to the *.dcm or *.mpa file on the tool host |
ReadValue¶
Reads a value of a variable
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
Task |
string |
Task used for registering the value |
|||
VariablePath |
string |
Variable path |
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
result |
string |
Numeric return value or NotPresent |
RestartSimulation¶
Stops and restarts the simulation resetting every previously written values.
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
Reset |
True |
[False, True] |
bool |
Re-deploys the model on the real-time platform. |
StartSimulation¶
Starting the simulation of the real-time platform.
StopSimulation¶
Stopping the simulation of the real-time platform.
WriteValue¶
Writes the value of a variable
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
Task |
string |
Task used for registering the value |
|||
Value |
0 |
float |
Numeric return value |
||
VariablePath |
string |
Variable path |