I am trying to get real-time data from simulink model and display it on gui, so I am using add_exec_event_listener in Simulink model callback as written here: https
add_exec_event_listener