winIDEA SDK
Loading...
Searching...
No Matches
invoke_oscontrol.py
1# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8def main():
9 winidea_id = ''
10 print('isystem.connect version: ' + ic.getModuleVersion())
11
12 cmgr = ic.ConnectionMgr()
13 cmgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14 sessionCtrl = ic.CSessionCtrl(cmgr)
15 sessionCtrl.begin_attach()
16
17 ideCtrl = ic.CIDEController(cmgr)
18
19 inParams = {}
20 inParams['Operation'] = 'Export'
21 inParams['FileName'] = 'export_file.csv' # will export to workspace root
22 inParams['Type'] = 'CSV'
23
24 ideCtrl.invoke("/Plugin/[App/Core0] OSEK AUTOSAR/OSControl", inParams)
25
26
27if __name__ == "__main__":
28 main()