summaryrefslogtreecommitdiff
path: root/Origin/tools/openmodelica/linux/MDD_build/pot/runMDD_pot_threshold.mos~
blob: 98cc2ccebe5e14925fe12a49f46ac0b048cf9f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
loadModel(Modelica);
getErrorString();

loadFile("/home/sumeet/Modelica_DeviceDrivers/package.mo");
getErrorString();

loadFile("/home/sumeet/MDD_Arduino/linux-version-4/OpenModelica-Arduino-MDD_Arduino_Revised/Arduino.mo");
getErrorString();

translateModel(Arduino.SerialCommunication.MDD_Examples.MDD_pot.MDD_pot_threshold, fileNamePrefix="pot_threshold");
getErrorString();

simulate(pot_threshold, outputFormat="csv", startTime=0, stopTime=4, numberOfIntervals=5)
plot(y)