To each causal diagram, and the structure that it represents, a dynamical system can be associated. From its qualitative analysis, the behaviours associated to the structure can be deduced. This paper introduces a piecewise linear dynamical system associated to a causal diagram. Some interesting results on the qualitative behaviour of the system can be obtained from this dynamical system. In this paper a method is proposed to implement automatically the construction of a piecewise linear dynamical system to each causal diagram, the study of its equilibria and its stability. This allows us to obtain, automatically, the behaviour modes associated to a causal diagram.