The matrix-based approach presented here is a solution to the real-time application of control in discrete event systems and flexible manufacturing systems (FMS), and offers a sound practical basis for the design of controllers for manufacturing systems.