Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64702839
launch_ems.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 28, 20:18
Size
544 B
Mime Type
text/x-python
Expires
Thu, May 30, 20:18 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17899930
Attached To
R3852 EMS for Smart-Building
launch_ems.py
View Options
from
Queue
import
Queue
from
rtevents_interface.rtevents_interf
import
RTEventInterface
from
emscore.ems_main
import
EnergyManagementSystem
print
(
"Starting EMS "
)
stream_rtevents
=
Queue
()
print
(
"Launching threads for the interface frontend and the CMS"
)
rtevents_interf
=
RTEventInterface
(
stream_rtevents
)
# RT Interface
ems_core
=
EnergyManagementSystem
(
stream_rtevents
)
# The core of the EMS logic
# Start the thread
rtevents_interf
.
start
()
ems_core
.
start
()
# Do infinite loop here for EMS job
rtevents_interf
.
join
()
cms
.
join
()
Event Timeline
Log In to Comment