Files
BondGraph/exporttest/export_controller.mos

12 lines
466 B
Plaintext

setCommandLineOptions("--simCodeTarget=ExperimentalEmbeddedC");
loadFile("/work/EmbeddedControl.mo");
okCheck := checkModel(EmbeddedControl.Math.DDifference);
print("checkModel(EmbeddedControl.Math.DDifference) = " + String(okCheck) + "\n");
print(getErrorString());
okTranslate := translateModel(EmbeddedControl.Math.DDifference, fileNamePrefix="difference");
print("translateModel(test2d.Dcontroller) = " + String(okTranslate) + "\n");
print(getErrorString());