Generic-Blocks Examples Directory:
There are several pre-drawn examples of using CSIM's General-Blocks
library functions within the csim/models_libs/general_blocks/Examples
directory. Most of the examples are self contained. Simply copy the
{model}.sim file to your local directory and open the GUI on it.
Then just build and run the model (GUI: Tools/Build, Tools/Run).
When the simulation window comes up, click the "Run/Continue" button.
Some of the examples present additional instructions for viewing the
results. Others automatically pop-up result graphs for you.
Some examples require the data_structs.txt file to be copied to
your local directory. Others require their own data_structs.txt
file, and are therefore packaged together in a zip file. Simply
unzip the package in your local directory.
Once you have run an example, feel free to experiment by modifying
or extending your local copy of the example.
The following examples are contained in the Examples directory:
- Mandlebrot - Complex example which computes Mandlebrot pattern
and displays result in XGRAPH.
- EventProbes.zip - Example of using simple event probes and
graphing event times.
- example_XY.sim - Example of making an XY graph.
- queuing_example.sim - Simple queuing example.
- GenericProbe.zip - Example of using generic probes.
- arith_test4.sim - Simple arithmetic model.
- example_time.sim -
- HyperProbe.zip - Nice example showing how to use HyperProbes.
Generates and pops-up clickable event-time graphs.
- button_slider_example.sim - Nice example showing how to place
slider controls in your graphs.
- histograms.zip - Nice example shows how to make histograms.
- test1.sim - Simplest test.
- test_inc_dec.sim - A simple example.
- test_NC_inc.sim - A simple example.
- test_intBuffer.sim - A simple example.
- test_buffer.sim - A simple example.
- test_print_int.sim - Simple example showing how to print from graph.
- ds_test2.sim - Simple example of using data structures.
- ds_test3.sim - Another example of using data structures.
- data_structs.txt - Support file used by many examples.