Changeset 926 for branches/gui/sample/miscellaneous
- Timestamp:
- May 26, 2010, 11:21:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/sample/miscellaneous/sample_timer.mso
r925 r926 10 10 11 11 VARIABLES 12 Clock as time_h;12 Clock as Real; 13 13 flow as flow_vol; 14 14 … … 23 23 flow = 0 * 'm^3/h'; 24 24 25 diff(Clock) = 1 *'s'/TimeClosed;26 when Clock /'s'> 1 switchto "opened";25 diff(Clock) = 1/TimeClosed; 26 when Clock > 1 switchto "opened"; 27 27 28 28 case "opened": 29 29 flow = 1 * 'm^3/h'; 30 30 31 diff(Clock) = -1 *'s'/TimeOpened;32 when Clock /'s'< 0 switchto "closed";31 diff(Clock) = -1/TimeOpened; 32 when Clock < 0 switchto "closed"; 33 33 end 34 34 35 35 INITIAL 36 Clock = 0 *'s';36 Clock = 0; 37 37 38 38 OPTIONS
Note: See TracChangeset
for help on using the changeset viewer.