-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSignalLoggerExecutor.m
39 lines (27 loc) · 1.14 KB
/
SignalLoggerExecutor.m
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
26
27
28
29
30
31
32
33
34
35
36
37
38
classdef SignalLoggerExecutor < difftest.DecoratedExecutor
%SIGNALLOGGEREXECUTOR Summary of this class goes here
% Detailed explanation goes here
properties
end
methods
function obj = SignalLoggerExecutor (varargin)
obj = [email protected](varargin{:});
end
function pre_execution(obj)
% Need pre-execution becuase we are checking whether the model
% would compile after ony changing the SignalLogging attribute.
% During differential testing, there can be many other
% attributes, e.g. simulation modes
emi.slsf.signal_logging_setup(obj.hobj.sys);
save_system(obj.hobj.sys);
simu_args = struct('SignalLogging', 'on');
obj.hobj.sim_command(simu_args);
end
function retrieve_sim_result(obj)
obj.hobj.exec_report.simdata = obj.hobj.simOut.get('logsout');
end
function decorate_sim_args(obj)
obj.hobj.sim_args_cache.SignalLogging = 'on';
end
end
end