i have seen the below code in the python trace32 demos where the functin subprocess.Popen is used to launch trace32 using python.
# Launch TRACE32 as a sub process - this prevents our script
# from blocking
t32process=subprocess.Popen([T32BIN,'-c',CONFIGFILE])
# Wait a few seconds to give TRACE32 time to initialise - this may
# be up to 8 seconds depending upon the hardware and connection
# method. For SIM, we'll use 3 seconds.
time.sleep(3)
In this case the time to wait for the initialisation was 3 seconds. However this varies and so my question is, is there a way to programmatically check if TRACE32 has finished initialising ?