ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 06-02-2011
shashanktrivedi shashanktrivedi is offline
Flexsim User
 
Join Date: Apr 2011
Posts: 59
Downloads: 26
Uploads: 0
Thanks: 26
Thanked 16 Times in 3 Posts
Rep Power: 122
shashanktrivedi will become famous soon enough
Default TASKTYPE_SENDMESSAGE

If 0, then the message is sent immediately. If -1, then the message is sent delayed in zero time.(Reference Flexsim Usermanual)

I am little bit curious to understand what is difference in between immediately and delayed in zero time for var4 parameter in TASKTYPE_SENDMESSAGE.

Kindly suggest.

Regards
Shashank Trivedi
  #2  
Old 06-02-2011
mark.gormley mark.gormley is offline
Flexsim User
 
Join Date: Oct 2008
Posts: 58
Downloads: 12
Uploads: 0
Thanks: 32
Thanked 63 Times in 29 Posts
Rep Power: 181
mark.gormley has a spectacular aura aboutmark.gormley has a spectacular aura about
Default

An immediate message gets called right away like a function call. It will happen as the next bit of code. This is like the sendmessage() command.

When a message is delayed with 0 time it will get scheduled at the end of all events currently happening at that simulation time. This is the same as using senddelayedmessage() with a delay of 0.
The Following 4 Users Say Thank You to mark.gormley For This Useful Post:
Stefan Trabut (06-06-2011)

Tags
tasktype



All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.