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 > Downloads > Models > User Concept
Downloads

Latest Files
Latest Files
Most Popular Files
Most Popular Files
Top Contributors
Top Contributors
Tom David 47
Tyson Nordgren 35
Paul Toone 31
Matt Long 29
Phil BoBo 18
Regan Blackett 16
Cliff King 14
Cameron Pluim 11
Alex Christensen 8
Brandon Peterson 6

Uploaded files must be in one of the following formats: zip rar jpg jpeg jpg2 gif png pdf fsm xls xlsx doc docx ppt pptx

Please no copyrighted material without author's permission!!
  
Navigation
Main | Category Tree | Stats
Downloads [Download Sample_ModifyNetworkDuringSimulation_TD]
File Name: Sample_ModifyNetworkDuringSimulation_TD (33.5 KB) Download
Author: Tom David)
Date Added: 07-05-2010
Downloads: 2090
Grade: Not Rated
Description
This model is a small example how to change the network for a taskexecuter during the simulation run.

The first item gets released in the Source. To release the next item press the Release Item Button on the Control GUI.

Release Item = Releases an item from the Source (Message send to Source).
Init Network = Init the Network to 4 network nodes (User Command).
Add NetNode = Adds Network Node NN5 and makes the connections (User Command).

The idea is to give the taskexecuter the first tasksequence and if he is traveling to the NN2, press the AddNetNode to add an additional Network Node.
The tricky bit is to know, which commands are necessary to update the network sytem.
optimizenetwork() is to cause the model's network navigator to regenerate its distance table.
The while loop is to set the inopen of the new connectionsout of NN5 to one which is necessary to make the model working.

Attention:
Do not delete or rename the object Logo_FlexsimD, because otherwise the model will not work correctly. Also do not rename, delete or rerank other objects.

Path:
\userprojects\SampleModels\

Files:
Sample_ModifyNetworkDuringSimulation_TD.fsm
 
Tom David
aka
tom the (A)tom

Flexsim Version: v5.04

Here is a link to the related thread in the forum:
http://www.flexsim.com/community/for...read.php?t=967
Images
Tom David on 07-05-2010
Downloads [Download Sample_ModifyNetworkDuringSimulation_TD]


Comments
Sung Kim
12-16-2015 at 03:35 PM
Hi, Tom,
Thank you for the model!
Just quick question about the code.
If I run the model using v6, it works. If I use v7, it gives me error messages complaining about "PORT_INOPEN".
Flexscript Error MODEL:/Tools/UserCommands/AddNetworkNode_TD/code Line 25 unknown variable "PORT_INOPEN"


Flexscript Error MODEL:/Tools/UserCommands/AddNetworkNode_TD/code Line 27 unknown variable "PORT_INOPEN"


Could not finish parsing because of previous errors.


Is it global macro value? What is the value of it? Should I define it as macro?
Bottom line is, how can I run your model in v7? What should I fix it?
Forgive my ignorance, and thank you for your generous understanding and help in advance.


Sung.

DownloadsII 5.1.2 by CyberRanger & Jelle
Based on ecDownloads 4.1 © Ronin

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.