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

  #41  
Old 08-31-2008
Goksin Yilmaz's Avatar
Goksin Yilmaz Goksin Yilmaz is offline
Flexsim User
 
Join Date: Aug 2007
Location: ON, Canada
Posts: 21
Downloads: 11
Uploads: 0
Thanks: 23
Thanked 13 Times in 6 Posts
Rep Power: 213
Goksin Yilmaz is a jewel in the roughGoksin Yilmaz is a jewel in the roughGoksin Yilmaz is a jewel in the rough
Default Batching after rack

Lin,

Is there a specific reason you cannot use a dummy queue at the exit of the rack, which will batch 5 flowitems and then release to your destination queue?

Obviously you don't even need to display the dummy queue, just keep it there to batch after dwell time at the rack.

Good luck, GY
The Following User Says Thank You to Goksin Yilmaz For This Useful Post:
Lin Jincong (09-01-2008)
  #42  
Old 09-03-2008
AlanZhang's Avatar
AlanZhang AlanZhang is offline
Flexsim Super Moderator
 
Join Date: Aug 2007
Location: CA
Posts: 289
Downloads: 64
Uploads: 0
Thanks: 88
Thanked 91 Times in 47 Posts
Rep Power: 225
AlanZhang is a jewel in the roughAlanZhang is a jewel in the roughAlanZhang is a jewel in the rough
Default

Here is a model doing batch processing for rack object using its End of Dwell trigger. Maybe for some statistic reasons you do not want use a dummy queue object as items will still go into the dummy queue one by one.

All the critical code are in the triggers of rack object. And you have to choose "do not release item" for Send To Port. Note releaseitem command won't work for rack somehow.
Attached Files
File Type: zip rack_AZ.zip (45.5 KB, 284 views)
__________________
Best,
Alan
The Following User Says Thank You to AlanZhang For This Useful Post:
Lin Jincong (09-21-2008)
  #43  
Old 09-04-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default Invisible Objects???

Hi,
I couldn't find my objects in either ortho or Persp view. I believe I still have the objects in the model because I can see them in the tree window. Please help me to get my objects back!
Attached is the movie clip (AVI) to show what invisible objects mean.

Thanks,
Sung
Attached Files
File Type: zip WhereMyObjects2.zip (938.9 KB, 257 views)
  #44  
Old 09-04-2008
Tyson Nordgren Tyson Nordgren is offline
Flexsim Technical Support
 
Join Date: Nov 2007
Posts: 6
Downloads: 46
Uploads: 35
Thanks: 7
Thanked 5 Times in 3 Posts
Rep Power: 0
Tyson Nordgren is on a distinguished road
Default

Your model node is togggled as a flexscript node. Right click on the model node, point to build, and select toggle node as flex script.
The Following User Says Thank You to Tyson Nordgren For This Useful Post:
Sung Kim (09-04-2008)
  #45  
Old 09-04-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default

Hi, Tyson.
Thank you for the tip. However, I still have a trouble to get objects in ortho view. I tried not only "Toggle node as Flexscript" but also all other options , but none of them bring them back.
What did I missed?

Thank you.
  #46  
Old 09-04-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

Make sure it is not toggled as anything. If the icon is still a brown circle instead of a square, triangle and circle, execute this in a flexscript window:
Code:
nodeadddata(model(),DATATYPE_OBJECT);
Then try saving and reopening the model.
  #47  
Old 09-04-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default

Hi, Alex,
Thank you for the script. Yes, the node still remains brown squre box. I ran the script, but it wouldn't change. Maybe I changed so many times for the build options?? It looks like several letters are overlapped in the little brown boxes. (G, C, S,...)
  #48  
Old 09-04-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

If the letter is there, toggle it so that it is not there.
  #49  
Old 09-04-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default

Hi, Alex,

I am sorry but I couldn't change the build option at all (to change the letter to squre, triangle, and circle icon)
The brown box seems to show not only one character but also other characters together. It is now barely readable. Looks like G, S, C characters are overlapped together.
Either the script or the Tyson's toggling build option still would not change the node (consequently, no objects in view window)
Please help me.

Thanks,
Sung
  #50  
Old 09-04-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default

FYR, Here is the video clip that I tried to follow Tyson and Alex instruction.
Attached Files
File Type: zip WhereMyObjects3.zip (1,012.6 KB, 268 views)
  #51  
Old 09-04-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

Execute this script, which should turn off all the toggles except the G:
Code:
switch_cppfunc(model(),0);
switch_dllfunc(model(),0);
switch_flexscript(model(),0);
, then toggle it as Global C++ if the G is still there.
The Following User Says Thank You to Alex Christensen For This Useful Post:
Sung Kim (09-04-2008)
  #52  
Old 09-04-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default TA DA !!!!!

YES!! now I got the objects back!!
Thank you very much for your help, Alex and Tyson!
  #53  
Old 09-18-2008
Simon Riopel Simon Riopel is offline
Flexsim User
 
Join Date: May 2008
Location: Montréal, Qc
Posts: 12
Downloads: 23
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 145
Simon Riopel is on a distinguished road
Default Simple coding question

Hi,
I have a very simple question that's bothering me presently:

How do I write the object name that I want to make an operation on outside of the current object ?

In all exemple of coding, the operation is made on the current object (like "closeoutput(current)"). If I wan't to close the output of the object "Conveyor22", do I write it this way: closeoutput("Conveyor22") ?

Thank you !

Simon
__________________
----------------------------------------------------
http://www.clermont-cloutier.com
  #54  
Old 09-18-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 Simon,

Take a look at the node command.

If you use node the closeoutput will look like this

Code:
closeoutput(node("/Conveyor22",model()));
Lars-Olof
The Following User Says Thank You to Lars-Olof Leven For This Useful Post:
Simon Riopel (09-18-2008)
  #55  
Old 09-18-2008
Joe Allen Joe Allen is offline
Flexsim User
 
Join Date: Jul 2008
Posts: 80
Downloads: 2
Uploads: 0
Thanks: 34
Thanked 5 Times in 3 Posts
Rep Power: 151
Joe Allen is on a distinguished road
Default fsmacros node

I would like to write code that writes text into the fsmacros node. Is there a command that would let me write values into this node? I tried using setnodestr() but it didn't work.
  #56  
Old 09-18-2008
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

treenode fsmacros = node("/1/fsmacros",model());
string append = "\r#define joeallen 1234";

setnodestr(fsmacros, concat( getnodestr(fsmacros), append));

// refresh the macros
refreshglobalvariables();
buildnodeflexscript(model());
The Following 3 Users Say Thank You to Phil BoBo For This Useful Post:
RalfGruber (09-19-2008)
  #57  
Old 09-18-2008
Joe Allen Joe Allen is offline
Flexsim User
 
Join Date: Jul 2008
Posts: 80
Downloads: 2
Uploads: 0
Thanks: 34
Thanked 5 Times in 3 Posts
Rep Power: 151
Joe Allen is on a distinguished road
Default

I was missing the last 2 lines. Thanks a lot Phil! You are the man!
  #58  
Old 09-18-2008
Joe Allen Joe Allen is offline
Flexsim User
 
Join Date: Jul 2008
Posts: 80
Downloads: 2
Uploads: 0
Thanks: 34
Thanked 5 Times in 3 Posts
Rep Power: 151
Joe Allen is on a distinguished road
Default Model Tree Organization

Does anybody have a sorting algorithm that would rank the model objects in the tree alphabetically?
  #59  
Old 09-18-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Joe,

I do not have such an algorithm, but I like to give a comment.

Keep in mind, that the order in the tree is also the order how events will be executed. So if you have two events at the same simulation time, e.g. OnReset, than the order in the tree defines the order in the event list. So sometimes it might be useful to have some objects in front of others.

The order also influences the visualization of objects in this sense that an object at rank 1 has higher “priority”. If you for example have a Visual Tool as screen billboard and you want that this one is always shown and not hidden by other objects the VT should be at one of the first ranks.

I always organize my tree in the order the material flow is ordered, even if this is sometimes not really clear. But at least I try to structure it to make it more organized and hopefully understandable. Visual Tool screen billboards are normally at a low rank.
If you have a look into my posted models you might get an idea what I mean. I always take the time and effort to do this, because I think it makes the model better understandable and objects are easier to find. Sometimes I also included empty nodes to have sections in the tree or I use Visual Tools as containers.

Anyway, I hope it is understandable what I mean and if you are already aware of these things, than please just forget this post.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
The Following 2 Users Say Thank You to Tom David For This Useful Post:
Joe Allen (09-19-2008)
  #60  
Old 09-19-2008
Joe Allen Joe Allen is offline
Flexsim User
 
Join Date: Jul 2008
Posts: 80
Downloads: 2
Uploads: 0
Thanks: 34
Thanked 5 Times in 3 Posts
Rep Power: 151
Joe Allen is on a distinguished road
Default

I was not already aware of those. Thank you for a very informative post. You saved me from screwing up the order of my model objects.


Thread Thread Starter Forum Replies Last Post
Can coordinated task sequence and "break to requirement" be used together? qin tian Q&A 1 05-26-2008 10:44 AM
error message "Clock overflow, running stopped" Martin Kooijman Q&A 11 04-17-2008 10:29 AM
about "no select" and "show parameter window from side bar" qin tian Gripes and Goodies 3 03-21-2008 08:10 AM
Which variable stores "Properties -> General ->Flags -> Protected" information? KelvinHo Q&A 1 03-06-2008 06:18 AM
"Getting Started" and "Tutorial" models for v4.01 Cliff King Product Announcements 0 12-10-2007 07:34 PM


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.