谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
5 J! J8 g$ k; Y. wbegin model initialization function3 e2 p6 h% ] @# f: k! z5 z" J
create 1 load of load type L_null to P_Creation2
D- B$ y8 y! n8 F) i( J create 1 load of load type L_null to P_Creation34 ?3 }" S. }- Q1 t5 D, l
create 1 load of load type L_null to P_Creation4/ A' A3 K9 X2 G0 q) ~- ~
return true 3 Q5 x, [) }: u; v0 l* ^
end9 j% |8 i" C5 j; \
$ x* s* d: M) {- e2 ]begin P_Creation2 arriving procedure
7 P' A0 A) R/ u. o% Z& R# hwhile 1=1 do
% \6 A$ b: W* m6 v; } H+ i begin
) I# l# Y3 F. k, d( C1 e" A, ~ wait for 1 sec
! {8 z; c; z Y+ T0 e create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)' i# [; ^" d7 C% R, K. n' H
end
" |: ^# Y9 p$ s; Yend" |4 f: l, X8 D0 t
* D8 G! o* ~7 g* d$ c! n, pbegin P_Creation3 arriving procedure
3 k3 Q- {& v' r1 zwhile 1=1 do# O a3 L- \$ h3 Y6 F( H
begin0 o. [, H; c5 O, g' R# y, l _
wait for 1 sec
! c8 M# E: e! E) g& v create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
% p: h2 l3 ~0 d end) W4 \2 c w9 |* [& ~ U
end 7 [' [/ {3 \1 o3 \. T
) W' v L. l9 ubegin P_Creation4 arriving procedure
1 X. A" o0 S+ k' B% n! D8 i# ]while 1=1 do
* V1 S& W1 z! u5 M% y! T4 n/ T- {0 k, [ begin5 h3 }' _" g& N8 u, _
wait for 1 sec
9 M' Z7 n. I& K* y, i* W8 X create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)/ W9 z1 X. T2 v% t( ?6 F2 I
end
! _8 Q( \& C5 y! H+ g5 j9 P% nend7 a# b+ d, Y' s. q! ]
6 U# @/ p! \# q5 x7 X( O, |但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |