winIDEA SDK
test_ctrace_xml_export_format.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8def test_CTraceXMLExportFormat():
9 print("Example of creating XML trace export formatter...")
10 # ... explore other `set` methods ...
11 fmt = ic.CTraceXMLExportFormat()
12 fmt.setActivity(True)
13 fmt.setAddress(True)
14 fmt.setAUX(True)
15 fmt.setBusStatus(True)
16 # ... explore other `get` methods ...
17 print(f"Include labels: {fmt.isLabel()}")
18 print(f"Include OCT signals: {fmt.isOCT()}")
19 print(f"Include source lines: {fmt.isSourceLine()}")
20 print(f"Include timestamps: {fmt.isTime()}")
21
22 # TODO add example of options set by file
23
24
25if __name__ == "__main__":
26 test_CTraceXMLExportFormat()