This would be against the business modell of MathSoft :-), because you want to use the "engine" of Mathcad without price, like a compiler.
Neither Mathcad, nor Matlab/Simulink provide such.
With Labview, its different: You might do so with the LabWindows/CVI product.
Maybe you should consider...