create_state, enter_state, exit_state

create_state, enter_state, exit_state — are part of the SCADALisp exception-driven state machine mechanism.

Syntax

create_state (state_function, symbol?...)
enter_state (state_machine, state)
exit_state (state_machine, state)

		

Arguments

state_function

The function to call upon entering this state.

symbol

One or more symbols which will act as triggers to cause this state to be re-evaluated.

state_machine

A state machine created through a call to (new StateMachine)

state

A state created through a call to (create-state...)

Returns

create_state: The new state definition.

enter_state: A status value.

exit_state: A status value.

Description

These functions are part of the exception-driven state machine mechanism built into SCADALisp. This mechanism is not fully supported, and will not be documented for this release. The reader may find the library file StateMachine.lsp helpful in determining how to use state machines. In general, this function should not be called directly from user code, as it is designed to provide support for the StateMachine library functions.

Example

none