Everything
2.3 Control CS+ in the Python 3 Execution Environment

CS+ can be controlled by scripts for Python 3. This section describes how to control CS+ from the command prompt.

(1)

Start up the server for the external communications facility in the Python console of CS+.

(2)

Run Python from the command prompt.

(3)

Add the integration_service folder to the settings for paths.

(4)

Import a csplus module by using an import statement.

(5)

Call the functions of the csplus module to control CS+. Start by calling the connect() function. To close the server, call the disconnect() function or terminate() function.

 

>>> import sys
>>> sys.path.append("C:\Program Files (x86)\Renesas Electronics\CS+\CC\Plugins\PythonConsole\integration_service")
>>> import csplus
>>> csplus.connect()
>>> session_id = csplus.launch_debug_session("")
>>> csplus.teminate_debug_session(session_id)
>>> csplus.terminate()
>>>

For details on the functions of the csplus module, see “C. External Communications with the Python 3 Execution Environment/csplus Module Functions”.