Power Flow Emulator Configuration
The Power Flow Emulator is a separate service (EMService) that runs within NMS and submits power flow solution data back into the NMS to emulate SCADA data that would generally come from the field. The emulator is responsible for simulating SCADA telemetry, creating simulated faults events, and properly simulating user control actions that are initiated from the NMS.
The following are required to properly set up EMService:
1. Power Flow services must run reliably on the data model.
2. The system.dat file must be setup properly to enable EMService. Ensure that the following line is setup properly.
program EMService EMService -dbname pf ‑scadaId RTAdapter ‑inputDir ${NMS_SCADA_SCAN_FILE_DIR} ‑outputDir ${NMS_ROOT}/scada_out
scadaId: This parameter should be populated with the ID to emulate measures for.
inputDir: This parameter should be populated with the file path where RTAdapter is scanning for incoming telemetry.
outputDir: The parameter should be populated with the file path in which outbound control actions are written to.
3. The RTAdapter command line options in the system.dat file need to be changed to enabled the ‑controls parameter:
program RTAdapter RTAdapter ‑scada RTAdapter ‑interval 3 ‑operate ‑dir ${NMS_SCADA_SCAN_FILE_DIR} ‑controls rti‑emulator
4. The EMULATOR_FREQUENCY, EMULATOR_VOLTAGE_RANGE, and EMULATOR_CURRENT_RANGE SRS rules need to be set up properly to control the emulation range of values and the frequency run.
EMService High Level Messages
High level messages are available for troubleshooting and simulating user specific conditions.
Note: Oracle recommends that you check with Oracle Support before using these options for the first time (especially in a production environment). They could have unintended consequences for application functionality, performance, or environment resource consumption.
clearoldforecastdata: Clear any old forecast data in the DB.
set_emulator_options <scale factor> <day type> <hour> [<season>]: Change the load options when running with -emulator.
clear_emulator_options: Reset the load options when running with -emulator
set_measure_quality <handle> <attr> <quality>: In the emulator, set the quality code device/attribute measurement.
clear_measure_qualities: In the emulator, clear all measurement qualities back to zero.
dump_measure_qualities: In the emulator, show all measurement quality mappings
simulate_op <operation> <handle> [<phases>]: In the emulator, simulate a device operation.
emulate_measures: Force the emulator to generate measurements for Power Flow services.
periodic_solution: Force the emulator to run a periodic resolve based on the state of the model.