Mechatronic systems are composed of mechanical, electronic and software parts. Recently, software processes and modeling notations traditionally used in software engineering have been used in building mechatronic systems. One of the modeling notations used in software design is the Unified Modeling Language (UML), a visual modeling language. In this paper, an analysis of UML in the building of mechatronic systems is presented.