After you have set up your simulator DLL project using the procedures described in the previous section, you can run your simulator routines in conjunction with the SansGUI environment in a debugging session in your IDE. Because your simulator project generates a DLL, the debugger in the IDE will use the Executable for debug sessions that you specified in the previous section as the starting program. The executable is SansGUI.exe, which will be linked dynamically to your simulator DLL in the debugging environment.
You may have other SansGUI environment running with some documents opened. Although not required, it is a good idea not to use any opened documents for debugging. To avoid file conflicts, you may want to close all other SansGUI program instances before starting the debugging session.
You can start a debugging session using the Trace build of the simulator DLL:
Click on the GO button in the Build toolbar or press the F5 key in the IDE.
A dialog appears to state that SansGUI.exe does not contain debug information. Simply click on the OK button to continue. SansGUI will start.
In SansGUI, load your test Project Model.
Open the Properties dialog for the Default in-process simulation control object.
In the Simulator Program Path field, enter the path of your simulator DLL file build in the Trace mode. You can enter the file path enclosed by angle brackets < > directly, or use the Input Assistant to locate the DLL file.
Close the Properties dialog and save the Project Model.
Run the simulator by clicking on the Run In-Process button in the Run toolbar.
Continue on the next section, Tracing Through Simulator Code.
You can start a debugging session using the Debug build of the simulator DLL:
Click on the GO button in the Build toolbar or press the F5 key in the IDE.
A dialog appears to state that SansGUI.exe does not contain debug information. Simply click on the OK button to continue. SansGUI will start.
In SansGUI, load your test Project Model.
Open the Properties dialog for the Default in-process simulation control object.
In the Simulator Program Path field, enter the path of your simulator DLL file build in the Debug mode. You can enter the file path enclosed by angle brackets < > directly, or use the Input Assistant to locate the DLL file.
Close the Properties dialog and save the Project Model.
Run the simulator by clicking on the Run In-Process button in the Run toolbar.
Continue on the next section, Tracing Through Simulator Code.
SansGUI Modeling and Simulation Environment Version 1.2
Copyright © 2000-2003 ProtoDesign, Inc. All rights reserved.