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 08-22-2008
Matthias Hofmann Matthias Hofmann is offline
Flexsim User
 
Join Date: Jun 2008
Posts: 15
Downloads: 1
Uploads: 0
Thanks: 11
Thanked 0 Times in 0 Posts
Rep Power: 146
Matthias Hofmann is on a distinguished road
Default Is there a time dependent trigger?

Hello,

I search a trigger which fires to a given simulation time which I defined. I have a rack where meat products are stored with a best-before label. I want to check every day if there are some products in the rack which are over the best-before date.
The best in my eyes would be to have a trigger which fires every day and then could I execute my check of the best-before label. Is there such a trigger in Flexsim?

thanks
Matthias
  #2  
Old 08-22-2008
Alex Christensen Alex Christensen is offline
Flexsim Technical Support
 
Join Date: Nov 2007
Location: Provo, UT
Posts: 96
Downloads: 41
Uploads: 8
Thanks: 29
Thanked 141 Times in 56 Posts
Rep Power: 298
Alex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to behold
Default

You could make a repeating user event in the Tools menu.
The Following User Says Thank You to Alex Christensen For This Useful Post:
Matthias Hofmann (08-25-2008)
  #3  
Old 08-22-2008
Lars-Olof Leven Lars-Olof Leven is offline
Flexsim Distributor
 
Join Date: Aug 2007
Location: Sweden, Borlnge
Posts: 312
Downloads: 278
Uploads: 2
Thanks: 300
Thanked 256 Times in 139 Posts
Rep Power: 330
Lars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to behold
Default

Hi Matthias,

Another solution is to use senddelayedmessage.

In OnReset for the rack you write senddelayedmessage(current,XX,current).
In OnMesseage you write your code to check the best-before date and
last of your code you write senddelayedmessage(current,XX,current) again.

XX is the repeating time.

Lars-Olof

Last edited by Lars-Olof Leven; 08-25-2008 at 04:44 AM.
The Following User Says Thank You to Lars-Olof Leven For This Useful Post:
Matthias Hofmann (08-25-2008)
  #4  
Old 08-25-2008
Matthias Hofmann Matthias Hofmann is offline
Flexsim User
 
Join Date: Jun 2008
Posts: 15
Downloads: 1
Uploads: 0
Thanks: 11
Thanked 0 Times in 0 Posts
Rep Power: 146
Matthias Hofmann is on a distinguished road
Default

The user event does exactly what I want, but I'm not such an expert in C++. So I will try the delayed message.

Thanks again for the quick answers,
Matthias


Thread Thread Starter Forum Replies Last Post
Displaying the simulation time with the various date/time formats. Regan Blackett Tips and Tricks 12 11-12-2012 08:01 AM
On Message Trigger Anthony Timmiss Q&A 19 08-13-2008 08:20 AM
Operator dependent process times Unregistered Pre-sales Questions 7 05-23-2008 03:01 PM
return 1 in entry trigger? qin tian Q&A 1 05-07-2008 04:05 PM
Entry trigger mallik Q&A 4 01-25-2008 07:18 AM


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.