+2 votes
217 views
in Helper by Shubham Jadhav (14 points)
I'm using example schematic of IEC61850 MMS server & with following script im able to connect the server & client & communicate points data but even after stopping the simulation the server & client are connected & communicating

here is a few line of code that connect client & server but does not disconnect them

        hil.load_model(file=cpd, vhil_device=False)  

        hil.start_simulation() # client & server are connected here

        hil.wait_sec(30)

        hil.stop_simulation() # even after stopping simulation client & server are connected here

       print(is_simulation_running()) #prints False i.e simulation is not running

am I missing out on something which might close the server?

1 Answer

0 votes
ago by Dusan Kostic (377 points)

Hi Shubham,

Actually, the MMS Server is implemented in a way that it keeps the connection with the MMS client even after stopping the HIL simulation. If you want to forcibly disconnect from the client you can call again hil.load_model(file=cpd, vhil_device=False) function after stopping the simulation.

Best regards,
Dusan

...