trick/test/SIM_test_varserv/RUN_test/realtime.py

21 lines
398 B
Python
Raw Normal View History

2015-02-26 15:02:31 +00:00
import trick
def main():
trick.var_server_set_port(50000)
trick.set_var_server_info_msg_on()
#trick.sim_control_panel_set_enabled(True)
trick.real_time_enable()
trick.itimer_enable()
#trick.add_read(1.1, """vsx.vst.vs_read()""")
#trick.add_read(2.1, """vsx.vst.vs_read()""")
trick.exec_set_terminate_time(3000.0)
#print trick.var_add("vsx.vst.b")
if __name__ == "__main__":
main()