A method for generating a software model of a dynamic system takes as
input a preliminary software model of the system. Normally, the
preliminary software model is based on a system model that is generated
by a system designer within a modeling environment. Generally speaking,
the preliminary software model does not allow access to the internal
variables of the system model from outside the modeling environment, but
nonetheless may be executed on a computer platform in the absence of the
modeling environment. Interface software is then produced which exposes
the internal variables of the system model. The resulting software model,
built from both the preliminary software model and the interface
software, allows programmatic access to its internal variables, and
potentially allows execution control, from outside the modeling
environment, thus typically enhancing detailed simulation of the system
model beyond the capabilities provided by the modeling environment.