Customization > Automation Interface > Functions > For System Simulations > State Machines > CreateStateMachine function (automation interface)
  
CreateStateMachine function (automation interface)
Syntax:
CreateStateMachine("")
Loads and runs the listener dll. This function returns the handle to the listener dll as a long.
* 
Some state machine controller functions require the handle to the listener dll as a parameter.
The GetStateMachineHandle function also returns the handle to the listener dll.
Examples
CreateStateMachine("")