Ticket #3953: runSimulate.mos

File runSimulate.mos, 354 bytes (added by Bernhard Thiele, 10 years ago)

The mos script calling simulate(..)

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