The DCM is implemented in the public domain R Programming language as an extension to the dse (Dynamic System Estimation) package. The dse package can be downloaded on all Computer platforms and can be run on line with a web browser (here). The DCM extensions with documentation are available here.
In the dse package, a state space model can be created using the SS command in R: