---
name: "diag_dynamicSimulationEnd"
type: command
status: ok
groups: ["Diagnostic", "Dynamic Simulation"]
arma3_since: "1.68"
branch: "diag"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/diag_dynamicSimulationEnd
revid: 347048
updated: 2023-08-28T22:05:05Z
---

# diag_dynamicSimulationEnd

*Command · Diagnostic, Dynamic Simulation · Arma 3 v1.68 · branch: diag*

Locality: effect **local**

## Description

Ends dynamic simulation data gathering and writes collected data into given (txt) file. The file is saved in the Arma 3 installation folder.

```cpp
// Example output
Enabled time (in % of collection time)       Subject name
  1.$                                          O Bravo 1-5
  1.$                                          O Bravo 1-6
  1.$                                          extraction_bike (B_Quadbike_01_F) - [3151,9662,59]
  .....                                          ..................................
  -1.$                                         O Bravo 1-4
  -1.$                                         target_1 (O_SAM_System_04_F) - [3571,9878,70]
  -1.$                                         O Alpha 3-4
Collection took 0.0s
```

## Syntax

```sqf
diag_dynamicSimulationEnd file
```

**Parameters:**

- `file`: [String](../topics/String.md) - file name without extension

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
diag_dynamicSimulationEnd "dynSimDebugData"; // creates a file called "dynSimDebugData_runtimelog.txt"
```

## See also

Arma 3: Dynamic Simulation · [diag_dynamicSimulationStart](../commands/diag_dynamicSimulationStart.md)

<sub>Source: [BI Community Wiki — diag dynamicSimulationEnd](https://community.bistudio.com/wiki/diag_dynamicSimulationEnd) (revision 347048).</sub>
