Skip to Content

Controller — Lifecycle

Back to Controller.

CreateProgram

def CreateProgram(name: str='', initStateName: str='', isMain: bool=True) -> CENPyOlpProgram

Creates a new controller program and sets it active.

Parameters:

NameTypeDescription
namestrName of the program to create. (default: '')
initStateNamestrName of the initial state to be used or to be created. (default: '')
isMainboolIf True, a Main program will be created, otherwise a sub-program. (default: True)

Returns: CENPyOlpProgram — Newly created program.

Was this page helpful?