谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
- d6 y; F2 d6 q9 Pbegin model initialization function) m; F: u, U5 a1 {5 ]
create 1 load of load type L_null to P_Creation21 v" @/ g; ~; \; p, l) }' r
create 1 load of load type L_null to P_Creation34 \1 \* u, [7 E2 x2 Z% ~
create 1 load of load type L_null to P_Creation48 o) d0 k& g x3 [/ L
return true
% |$ n$ V, ^1 Q- N# `end* H9 Q0 G8 l- k, J4 ^
( R8 T5 X0 e4 O& i0 ~& ^. {
begin P_Creation2 arriving procedure. V' i3 ]5 n" W
while 1=1 do
8 B' P; x" c, Z) }1 W3 B- ^ begin
; b- a, } N" J wait for 1 sec
( C- T w" h2 r! e# H9 f0 j0 q create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die): [! ?1 i3 ?9 i! ^* W# @1 |
end9 U8 L/ ?& k2 @/ I) E' d+ o
end: N6 R: ]* s9 P, c- r3 L
/ r- Q) f. \/ j1 cbegin P_Creation3 arriving procedure& Y; y) }1 V2 G: o( S ]1 l1 U8 J
while 1=1 do
/ v( x% p$ Y6 w, |/ f& O begin
4 v3 i, C0 l# P0 m wait for 1 sec( o: @. d4 H! N5 y7 A
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
4 x3 x J8 c% E end
$ O+ z$ o2 N# N, u! ~end
3 ^" \- g8 m! q* b2 W' R
& B) E* c' o! s+ \begin P_Creation4 arriving procedure
+ @3 [; d' o6 I: v) Hwhile 1=1 do
1 V2 H' {6 I. S6 Z- _/ x( Y/ M begin
6 \% k% w7 Y" G9 e$ K3 U' M wait for 1 sec
! d) b* G" K! k1 O$ _7 _9 o- P create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
, W1 Q2 C2 O* Z4 l2 Q end
$ S& D& Q' N7 H0 D6 ]end+ B, v/ |9 u" J- x
! D( B& b! a, z但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |