Index: simulator/run.py =================================================================== diff -u -r1779b6711f3791e8bf570e06ddb4c2e7d2a52e18 -ra3c7851a7de7cbed6b06abef5033b35308c04c93 --- simulator/run.py (.../run.py) (revision 1779b6711f3791e8bf570e06ddb4c2e7d2a52e18) +++ simulator/run.py (.../run.py) (revision a3c7851a7de7cbed6b06abef5033b35308c04c93) @@ -1,12 +1,28 @@ """ +########################################################################### +# +# Copyright (c) 2020-2026 Diality Inc. - All Rights Reserved. +# +# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +# WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +# +# @file run.py +# +# @author (last) Behrouz NematiPour +# @date (last) 24-Feb-2021 +# @author (original) Behrouz NematiPour +# @date (original) 19-Aug-2020 +# +############################################################################ the main function to load the main simulator loader widget """ import sys -from dialin.squish import utils +from dialin.ui import utils from PySide2 import QtCore, QtWidgets from simulator.loader import Simulator from dialin.ui.hd_simulator import HDSimulator +from dialin.ui.hd_simulator_alarms import HDAlarmsSimulator, HIGH def main(): @@ -39,6 +55,10 @@ if HDSimulator.instanceCount > 1: raise Exception("more than one instance of HDSimulator shall not be created.") else: + if HDAlarmsSimulator.instanceCount > 1: + raise Exception("more than one instance of HDAlarmsSimulator shall not be created.") + else: + print("HDAlarmsSimulator number of instances is ", HDAlarmsSimulator.instanceCount) print("HDSimulator number of instances is ", HDSimulator.instanceCount)