Patent ID: 7801715

Claim:
In a block diagram environment, a method of storing and using simulation context variables, comprising: registering areas of memory to be used in an original simulation of a block diagram of a dynamic system initiated from a zero time-point; running the original simulation of the block diagram initiated from the zero time-point; reaching a specified time-point in the original simulation of the block diagram, the original simulation displaying a first behavior of the dynamic system before the specified time-point and a second behavior of the dynamic system after the specified time-point, the specified time-point being one of a pre-determined time-point chosen prior to the original simulation and a user-indicated time-point chosen during the original simulation; storing system state information and simulation context variables from the registered areas of memory in a storage location based on the running of the original simulation from the zero time-point to the specified time-point, including a snapshot of the simulation context variables, the simulation context variables enabling a subsequent new simulation corresponding to the original simulation to be initiated from the specified time-point of the original simulation and including at least one variable selected from the group of a solver variable, zero-crossing information, debugging information, and a variable holding an output value of a subsystem; retrieving the simulation context variables and system state information from the storage location; and initiating the new simulation using the retrieved simulation context variables and the system state information, the new simulation initiated from the specified time-point of the original simulation so that the new simulation displays the second behavior of the dynamic system.