DOCUMENTATION TUTORIALS DOWNLOAD NEWS CONTRIBUTE

Defining GUI Experiment

When you execute your simulation, you will often need to display some information. For each simulation, you can define some inputs and outputs:

experiment exp_name type: gui {
   [input]
   output {
     [display statements]
     [monitor statements]
     [file statements]
   }
}

You can define two types of experiment (through the facet type):

Inside experiment scope, you can access to some built-ins which can be useful, such as minimum_cycle_duration, to force the duration of one cycle.

experiment my_experiment type: gui {
	float minimum_cycle_duration <- 2.0#minute;
}

Other built-ins are available, to learn more about, go to the page experiment built-in.

In this part, we will focus on the gui experiments. We will start with learning how to define input parameters, then we will study the outputs, such as displays, monitors and inspectors, and export files. We will finish this part with how to define user commands. //: # (endConcept|gui_experiments)