-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimulation.tooldef2
More file actions
25 lines (21 loc) · 897 Bytes
/
Simulation.tooldef2
File metadata and controls
25 lines (21 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from "lib:cif3" import *;
// Output files
string mrg_path = "generated_files/g_supervisor_hybrid.cif"; //Location of supervisor & simulation/hybrid merged
// Input files
string sup_path = "generated_files/f_supervisor.cif"; //Location of supervisor
string sim_path = "b_simulation.cif"; //Location of simulation/hybrid model
// Merge supervisor with hybrid plant simulation model.
outln("File \"%s\": generating...", mrg_path);
cif3merge(sup_path, sim_path, "-o", mrg_path);
outln("File \"%s\": generated.", mrg_path);
// Simulate the supervisor/hybrid plants simulation model.
outln("Simulating \"%s\"...", mrg_path);
outln();
cif3sim(mrg_path,
"-i svg",
"-a first",
"--frame-rate=20",
"--speed=1",
"--solver-root-maxchk=0.01",
"--max-delay=10.0",
"--option-dialog=yes");