Hi Saeed, An example model would help here. Also, see if you can turn on debugging for the PowerLossChannel so that you can see the receive power.
_Christopher -------- ------=_Part_37609_18084328.1208103417219 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear ptolemy-hackers, When I send 4 packets (tokens) in a loop and propagationSpeed of PowerLossChannel is *200* or *5000000* for example, only one message will receive by others (last one), but when I set propagationSpeed to *Infinity* anything is ok. what's the problem? This is the source: *for* (*int* j=0; j<4; j++) { *if* (minID[j]!=0) { HorizontalGeoUpdateSensorMessage msgH = *new*HorizontalGeoUpdateSensorMessa ge(); msgH.toSensorID = minID[j]; msgH.zone = j; msgH.sourceActorID = actorID; msgH.actorPoint = myLoc; msgH.previousPoint = myLoc; messageNumber++; msgH.messageNumber = messageNumber; msgH.hopCount = 1; msgOutPort.send(0, *new* ObjectToken(msgH)); } } -- Best Regards, Sedighian ------=_Part_37609_18084328.1208103417219 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>Dear ptolemy-hackers,</div> <div>When I send 4 packets (tokens) in a loop and propagationSpeed of Power LossChannel is <strong>200</strong> or <strong>5000000</strong> for exa mple,</div> <div>only one message will receive by others (last one),</div> <div>but when I set propagationSpeed to <strong>Infinity</s trong> anything is ok. </div> <div>what's the problem?<br clear="all">This is the source:</div> <div><font size="2"> <p align="left"></p></font><b><font color="#7f0055" size="2">for</font></b> <font size="2"> (</font><b><font color="#7f0055" size="2">int</font></b><fon t size="2"> j=0; j<4; j++)<br>{<br></font><b><font color="#7f0055" size=" 2">if</font></b><font size="2"> (minID[j]!=0)<br> {<br>HorizontalGeoUpdateSensorMessage msgH = </font><b><font color="#7f0055 " size="2">new</font></b><font size="2"> HorizontalGeoUpdateSensorMessage(); <br>msgH.</font><font color="#0000c0" size="2">toSensorID</font><font size=" 2"> = minID[j];<br> msgH.</font><font color="#0000c0" size="2">zone</font><font size="2"> = j;< br>msgH.</font><font color="#0000c0" size="2">sourceActorID</font><font size ="2"> = </font><font color="#0000c0" size="2">actorID</font><font size="2">; <br> msgH.</font><font color="#0000c0" size="2">actorPoint</font><font size="2"> = myLoc;<br>msgH.</font><font color="#0000c0" size="2">previousPoint</font> <font size="2"> = myLoc;<br></font><font color="#0000c0" size="2">messageNum ber</font><font size="2">++;<br> msgH.</font><font color="#0000c0" size="2">messageNumber</font><font size=" 2"> = </font><font color="#0000c0" size="2">messageNumber</font><font size=" 2">;<br>msgH.</font><font color="#0000c0" size="2">hopCount</font><font size ="2"> = 1;<br> </font><font color="#0000c0" size="2">msgOutPort</font><font size="2">.send (0, </font><b><font color="#7f0055" size="2">new</font></b><font size="2"> O bjectToken(msgH));<br>}<br>}</font></div> <div> </div> <div><br>-- <br>Best Regards,<br>Sedighian </div> ------=_Part_37609_18084328.1208103417219-- --------------------------------------------------------------------------- - Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED] -------- ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]