<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507533#M21282</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/193/steven.h.html" nodeid="193"&gt;@steven.hamoen&lt;/A&gt; Hi Steven, if the frequency of delivering the parts to the buffer for subassembly in average is every 3 min and also the frequency of clearing the sub assembled parts from the buffer is everey 3 min. How to implement this in the above mentioned model.?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 11:15:58 GMT</pubDate>
    <dc:creator>titli_d</dc:creator>
    <dc:date>2018-04-26T11:15:58Z</dc:date>
    <item>
      <title>Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507526#M21275</link>
      <description>&lt;P&gt;In my model, there are 3 parallel stations and 2 operators; Operator1 is fixed for station 1 and Operator2 flexes between station 2 and station 3. I have connected a Dispatcher to Processor1, Processor2, and Processor3 with center connections (S key). And Queue1 and Queue2 to Dispatcher with center connection (S key). What should be the connection so that Operator 1is fixed only to station 1 and Operator 2 flexes between station 2 and station 3? Please let me know what code should I write so that the model operates in the above mentioned way.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:29:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507526#M21275</guid>
      <dc:creator>titli_d</dc:creator>
      <dc:date>2018-04-04T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507527#M21276</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/7125/titlid.html" nodeid="7125"&gt;@Titli D&lt;/A&gt; Why don't you connect Operator 1 directly to station 1 (with a S connection) and Operator 2 to the dispatcher and the dispatcher with stations 2 and 3. I think that will do exactly what you describe.&lt;/P&gt;&lt;P&gt; Actually to connect an operator to a dispatcher you need an A connection and not an S connection (A from dispatcher to operator)  &lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 11:36:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507527#M21276</guid>
      <dc:creator>SCHamoen</dc:creator>
      <dc:date>2018-04-04T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507528#M21277</link>
      <description>&lt;P&gt;Hi Steven, How can I assign the priority to the task to decide which task is done in which station, I mean to say from the Queue 2 how the operator2 will decide which task to take to which station, between station 2 and station 3?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 12:40:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507528#M21277</guid>
      <dc:creator>titli_d</dc:creator>
      <dc:date>2018-04-05T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507529#M21278</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/7125/titlid.html" nodeid="7125"&gt;@Titli D&lt;/A&gt; See your other question&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:38:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507529#M21278</guid>
      <dc:creator>SCHamoen</dc:creator>
      <dc:date>2018-04-05T13:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507530#M21279</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/193/steven.h.html" nodeid="193"&gt;@steven.hamoen&lt;/A&gt; I am getting an issue. Need your help: &lt;/P&gt;
&lt;P&gt;Model: Total 4 parallel stations. Station1, Station2 and Station 3 connected to Queue1. Station 4 connected to Queue2. There are 3 operators: Operator1 is connected to Queue1 and Station1. Operator2 and Operator3 are connected to Dispatcher. And Dispatcher connected to Queue2 and Station 2, Station3, Station4. The scenario in my model is: Operator1 will be fixed to Station1 and Operator2 and Operator3 will flex between Station2, Station3, Station4. In the Queue1 I have written the following logic in "Use Transport" of Queue1: &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;int &lt;/STRONG&gt;&lt;STRONG&gt;portnum&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;( &lt;STRONG&gt;port&lt;/STRONG&gt; == 1 ) {&lt;!-- --&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;return&lt;/STRONG&gt;&lt;STRONG&gt;current&lt;/STRONG&gt;.centerObjects[1];&lt;/P&gt;
&lt;P&gt;} &lt;STRONG&gt;else&lt;/STRONG&gt; &lt;STRONG&gt;if&lt;/STRONG&gt;( &lt;STRONG&gt;port&lt;/STRONG&gt; == 2 ) {&lt;!-- --&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;return&lt;/STRONG&gt; &lt;STRONG&gt;current&lt;/STRONG&gt;.centerObjects[2];&lt;/P&gt;
&lt;P&gt;} &lt;STRONG&gt;else&lt;/STRONG&gt; &lt;STRONG&gt;if&lt;/STRONG&gt;( &lt;STRONG&gt;port&lt;/STRONG&gt; == 3 ) {&lt;!-- --&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;return&lt;/STRONG&gt; &lt;STRONG&gt;current&lt;/STRONG&gt;.centerObjects[3];&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt; {&lt;!-- --&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;return&lt;/STRONG&gt; &lt;STRONG&gt;current&lt;/STRONG&gt;.centerObjects[&lt;STRONG&gt;portnum&lt;/STRONG&gt;];&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;But writing this code only the Station 1 is processed by Operator1. And Station2 and Station3 is idle. Station 4 is working by both Op2 and Op3. How should i modify this code so that Op2 and Op3 works on Station2 Station3 and Station4?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 10:52:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507530#M21279</guid>
      <dc:creator>titli_d</dc:creator>
      <dc:date>2018-04-10T10:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507531#M21280</link>
      <description>&lt;P&gt;&lt;A href="https://answers.flexsim.com/questions/49592/code-needed-for-2-operators-assignment-for-3-paral.html#"&gt;@Titli D&lt;/A&gt; You have written some errors in your code:&lt;/P&gt;&lt;P&gt;1. you declare portnum but you don't initialize it (it does not get a value)&lt;/P&gt;&lt;P&gt;2. in the last else you use portnum but it has no value so this will never work&lt;/P&gt;&lt;P&gt;3. there are only 2 center connections. 1 to operator 1 and the other one is to the dispatcher so centerObjects[3] points to nothing.&lt;/P&gt;&lt;P&gt;the variable port is passed in and that is the port that the queue is sending the items to. So I guess that  your code should look something like this:&lt;/P&gt;&lt;PRE&gt;if( port == 1)
{
    return current.centerObjects[1];
}
else
{
    return current.centerObjects[2];
}&lt;/PRE&gt;&lt;P&gt;But this option is also available as the "Multiple Transport Option" and then those "port" as Value and Centerport 2 as default value and Centerport 1 with case 1&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:17:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507531#M21280</guid>
      <dc:creator>SCHamoen</dc:creator>
      <dc:date>2018-04-10T11:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507532#M21281</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/193/steven.h.html" nodeid="193"&gt;@steven.hamoen&lt;/A&gt;The mistake I did was, I did not connected Dispatcher to Queue1. Now after connecting Disptacher with Queue1, there are 2 center connections: 1. Operator and 2. Dispatcher. And i wrote the code : same like yours. now it makes sense.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:27:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507532#M21281</guid>
      <dc:creator>titli_d</dc:creator>
      <dc:date>2018-04-10T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507533#M21282</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/193/steven.h.html" nodeid="193"&gt;@steven.hamoen&lt;/A&gt; Hi Steven, if the frequency of delivering the parts to the buffer for subassembly in average is every 3 min and also the frequency of clearing the sub assembled parts from the buffer is everey 3 min. How to implement this in the above mentioned model.?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 11:15:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507533#M21282</guid>
      <dc:creator>titli_d</dc:creator>
      <dc:date>2018-04-26T11:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507534#M21283</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/7125/titlid.html" nodeid="7125"&gt;@Titli D&lt;/A&gt; The arrival rate is determined by the source or any other process that feeds the queues. The clearing is the time on the processor. Or am I missing something?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 18:25:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507534#M21283</guid>
      <dc:creator>SCHamoen</dc:creator>
      <dc:date>2018-04-26T18:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Code Needed for 2 Operators  Assignment  for 3 parallel stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507535#M21284</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/193/steven.h.html" nodeid="193"&gt;@steven.hamoen&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The arrival rate is determined by the source. And clearing is the time from the Queue to sink. Because the flow is: Source-Queue-Processor-Queue-Sink&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 07:40:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-needed-for-2-operators-assignment-for-3-parallel-stations/m-p/13507535#M21284</guid>
      <dc:creator>titli_d</dc:creator>
      <dc:date>2018-04-27T07:40:42Z</dc:date>
    </item>
  </channel>
</rss>

