Ticket #3953: runSimulate.mos
| File runSimulate.mos, 354 bytes (added by , 10 years ago) |
|---|
| Line | |
|---|---|
| 1 | loadModel(Modelica); |
| 2 | |
| 3 | res := simulate(Modelica.Blocks.Examples.PID_Controller); |
| 4 | print("A"); |
| 5 | print(res); // No error, but this line will be blank? |
| 6 | print("B"); |
| 7 | |
| 8 | if true then |
| 9 | res := simulate(Modelica.Blocks.Examples.PID_Controller); |
| 10 | print(res); // Throws an error that record is passed, but String expected |
| 11 | else |
| 12 | print("Just to have an else"); |
| 13 | end if; |
