Base on the GlobalTable value to run the model.

Base on the GlobalTable value to run the model.

s1125413
Advocate Advocate
362 Views
4 Replies
Message 1 of 5

Base on the GlobalTable value to run the model.

s1125413
Advocate
Advocate

Hello FlexSim community and @FelixMoehlmann .

 

I'm studying that FlexSim will regular monitoring the value in database. when the value changes to 1, the model will be run. Is possibility or any methods and  advice to implement this?

 

Thank you in advance for your help.

0 Likes
Accepted solutions (2)
363 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor

Flexsim must already run a model, then you can check a value to do something. In this scenario you can let resume a process flow or a stopped source object. If you want to start the Program Flexsim then you have to evaluate a value from a scheduler process in windows system.

0 Likes
Message 3 of 5

s1125413
Advocate
Advocate

Thank you @joerg_vogel_HsH 

Now I can open the model through the database and Python, but I want the model to run automatically when it opens. However, it doesn't work. Do you have any advice?

s1125413_0-1763539519734.png

 

0 Likes
Message 4 of 5

s1125413
Advocate
Advocate
Accepted solution

I add resetmodel() before run model and it work!

0 Likes
Message 5 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution
0 Likes