winIDEA SDK
test_cconnection_config.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_CConnectionConfig():
9 print("This is an example of how 'CConnectionConfig' instance is created...")
10 cfg = ic.CConnectionConfig()
11 cfg.cmdLineParams("/LOG:6")
12 cfg.instanceId("sdk_example")
13 cfg.udpDiscoveryPort(5345) # see 'isystem.connect' options dialog for range
14 cfg.useIPCDiscovery(True)
15 cfg.visibility(ic.IConnect.lfShowHidden) # use winIDEA in headless mode
16 cfg.waitTime(ic.IConnect.lfWait100ms)
17 cfg.workspace("C:/Desktop/myWorkspace/Sample.xjrf")
18
19 # additionally, there are 'get()' methods for getting data from existing instance
20 # when connection is performed via 'CConnectionConfig'.
21
22
23if __name__ == "__main__":
24 test_CConnectionConfig()