diagram variables to appliactions local or global variables
Declare the variable in External Variables tab (same as global variable) in CMT. Then you can fetch the global veriable in the CMT interaction window or CMD editor.
For example: Say you have declared a global variable in the application as, Variable Name = xyz and data type = bool. Declare same variable in 'External Variables' tab on CMT as, Variable Name = xyz and data type = bool.