Professional Documents
Culture Documents
0
Model-Based Design and Dynamic Simulation Software Modeling The Future
VisSim/State VisSim/State Charts lets you graphically create, edit, and HIGHLIGHTS
Charts provides an simulate finite-state machines within the VisSim design
Graphical state chart editor
intuitive method environment. Finite state machines are event-driven
systems that transition from one state to another based on OMG UML 2.1 compliant
for developing
a set of rules. Incorporate and control state
system control.
VisSim/State Charts is based on the industry-standard charts in VisSim
The graphical
editor along with OMG UML 2.1. It uses common graphical elements Represent hierarchical and
such as states, pseudo-states, and transition arcs to parallel states with transitions
standard C syntax
represent simple, hierarchical, and parallel states, and the State actions and transitions
combine to offer
transitions among them. You can attach C code actions to defined using standard C
a familiar design state activity and transitions to further define state chart syntax
entry experience. behavior.
Trigger state actions and
Behavioral
State chart execution runs in synch with VisSim operation. transitions
operation of the Communication between a state chart and the VisSim
control can easily Integrated debugger
model uses standard VisSim variables, triggers, and I/O
be simulated Breakpoints
pins on the state chart.
before targeting
Highlight active state
the embedded
Single step simulation
hardware. Data logging
ANSI C code generation
Randall Pipho
Senior Design Engineer
TECO Westinghouse
Motor Company The state chart (left)
tracks the packet
parsing state. The
first packet is intact,
the second packet
has a bad checksum.
www.vissim.com
The state chart block is a container in which you define your
event-driven system. The input and output signals allow data
to pass between the state chart and the VisSim model.
State Hierarchy
Organizing state chart elements into
logical subsystems lets you build charts
with hierarchy. States that contain other
states are called submachine states.
Normally, only a single state can be
active at a given time; however, you
can create states with
parallel regions, called
composite states.
Composite states allow
concurrent execution
of the parallel regions.
Right+click on the state
chart block (above) to enter
the top level of the state
chart (right).
www.vissim.com
Defining Transitions
Transitions are paths from one state or
psuedo-state to another on which the
logic of the system flows. Transitions are
represented as lines with an arrowhead
at one end, indicating the direction of
signal flow.
You can apply conditional guards Debugging a State Chart
to transitions that are evaluated VisSim provides debugging tools for
dynamically. When the condition examining, locating and correcting
evaluates to TRUE, the transition inconsistent state chart behavior. You
occurs. can step through the simulation, one
Like state actions, conditional guards are time step at a time. You can also set
defined in standard C syntax. breakpoints that halt the simulation
when a selected state action or
transition is activated.
Transition 1
fires when the Generating Production-Quality Code
guard expression If you have installed the VisSim/C-Code
within brackets is module (available separately), you can
TRUE. generate efficient, in-line code from your
state chart. This code communicates
seamlessly with the continuous portion
of the VisSim diagram, and it allows you
to incorporate your state chart into your
Using Triggers to Control State Chart embedded controller. ANSI C code generated from a state chart.
Execution
Triggers allow you to control the
execution of state charts. Triggers can
be part of a transition specification.
Transitions with triggers automatically
have higher priority than those without
triggers.
About Visual Solutions
Visual Solutions is a pioneer in the development of world-class
software for modeling and simulating complex dynamic systems and
for Model-Based Design of embedded systems.
VisSim is a visual environment for developing system models and
performing dynamic simulations. Its unparalleled power, ease of
use, and reliability has made it an essential tool on thousands of
engineering projects spanning a diverse range of industries and
disciplines, including motion control, closed-loop control, automotive,
HVAC, aerospace, medical devices, and embedded controls
development.
Since its founding in 1989, Visual Solutions has maintained a strong
connection with the academic community. Visual Solutions software
products have been incorporated into the curricula and research
laboratories at thousands of universities and colleges. It has enhanced
and improved teaching methods, learning skills, and research
strategies.
2011 Visual Solutions, Inc. VisSim is a trademark of Visual Solutions. All other products listed in
this document are trademarks or registered trademarks of their respective companies.