Add replay API initialisation/shutdown to python examples

This commit is contained in:
baldurk committed 2020-03-05 19:35:45 +00:00
1 parent bc56fd091d
commit 4e4ef40612
12 files changed
+65 -2

No files matched your search

@@ -9,6 +9,8 @@ import time
# the executable and trigger the capture at the desired time
raise RuntimeError("This sample should not be run directly, read the source")
rd.InitialiseReplay(rd.GlobalEnvironment(), [])
protocols = rd.GetSupportedDeviceProtocols()
print(f"Supported device protocols: {protocols}")
@@ -194,3 +196,5 @@ controller.Shutdown()
# save the capture, etc
remote.ShutdownServerAndConnection()
rd.ShutdownReplay()