Dynamic Model Stimulation
Description of the dynamic model stimulation functionality available through Scada Input components
Dynamic model stimulation is a feature that enables reproduction of high resolution time-series profiles during simulation runtime. In order to reproduce time-series signals Scada Input components are used. The the signal resolution is defined by the signal processing execution rate.
HIL API function declarations | Function description |
---|---|
create_signal_stimulus() | Creates signal stimulus object. |
prepare_signal_stimulus() |
Prepares initial data for signal stimulus. |
start_signal_stimulus() | Starts signal reproduction. |
stop_signal_stimulus() |
Stops signal reproduction. |
pause_signal_stimulus() | Pauses signal reproduction. |
load_signal_gen_data() |
Loads data from a file and prepares it for stimulus object creation. |
Reproduction signal definition
Signals can be prepared manually through code, or a load_signal_gen_data() function can be used. This function can load all the file formats supported by Typhoon HIL Control Center.
Signals for reproduction don’t need to have same execution rate as the signal processing execution rate.
Creating a stimulus object and performing signal reproduction
import typhoon.api.hil as hil
example_signal = {"SCADA Input1": [0, 1, 2, 3, 4], "Time": [0, 1, 3, 4, 6]}
stimulus_object = hil.create_signal_stimulus(stimulation_signal)
hil.prepare_signal_stimulus(stimulus_object)
hil.start_signal_stimulus(stimulus_object)
hil.start_simulation()
…
hil.stop_signal_stimulus(stimulus_object)
hil.stop_simulation()
There is no hard limitation regarding to the number of signals used for reproduction, but all signals referenced to a single signal stimulus need to be on the same signal processing simulation rate.