Opened 15 years ago
Last modified 15 years ago
#1113 closed defect (fixed)
sample() problem
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, Martin Sjölund |
Description
1.5.0 Beta: The following model gives the correct plot starting at time 2. Before that, the value 2 is used (but should be 1). It seems like the sample function gives an event at time=0 and t+n*increment.
model testSample
Integer value(start=1, fixed=true);
algorithm
when sample(2,1) then
value := 1+pre(value);
end when;
end testSample;
Note:
See TracTickets
for help on using tickets.