Case

X-Language Case 1: The Case of Self-Driving Cars

   In order to demonstrate the co-simulation capability of X language under hybrid models, a part of the process based on the actual driving model is simplified and the simplified driving model is modeled using three modules: continuous, discrete, and intelligent body.

Fig. 1 Driving Model Component Structure Diagram

X-Language Case 2: Water Tank Modeling Case

  The model consists of three parts, which are a reservoir, a water tank and an intelligent body (PI controller). The water tank gets water from the reservoir and then the PI controller controls the water level to stabilize in a certain range. The reservoir model outputs a small amount of water when the time is less than 150s, and the output is tripled after 150s, so we can see that the water level in the reservoir is stabilized initially and then increased again after 150s and stabilized again by the PI controller.

case2 General model structure diagram