<?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: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1 in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202690#M101587</link>
    <description>&lt;PRE&gt;setlabel(newitem, "Type", 1);&lt;/PRE&gt;&lt;P&gt;you hard coded this.&lt;/P&gt;&lt;P&gt;setitemtype and node are marked as deprecated. Especially itemtype has been replaced a long time ago by a standard label.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2026 05:10:52 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2026-07-17T05:10:52Z</dc:date>
    <item>
      <title>Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202676#M101586</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Title:&lt;/STRONG&gt; Digital twin: items created by Emulation Control action all route to port 1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using a FlexSim 2026 Education license. I'm preparing a digital twin class for next semester, and I appreciate your help.&amp;nbsp; I built two models connected via KEPServerEX 6 (OPC DA).&lt;/P&gt;&lt;P&gt;Master model writes item type (1/2/3) to a tag. Twin model has an Emulation Control variable subscribed to that tag, with three Actions (Value 1, 2, 3). Each action is a Code Snippet that creates the matching item:&lt;/P&gt;&lt;PRE&gt;treenode template = first(rank(node("/Tools/FlowItemBin", model()), 1));
treenode newitem = insertcopy(template, model());
setitemtype(newitem, 1);
colorarray(newitem, 1);
setlabel(newitem, "Type", 1);
applicationcommand("trackdefaultsoncreate", newitem);
moveobject(newitem, Model.find("EntryTransfer1"));&lt;/PRE&gt;&lt;P&gt;All three actions fire — I get red, blue and green items in the correct sequence, so the colors prove the right action runs each time. But every item routes to lane 1.&lt;/P&gt;&lt;P&gt;The Decision Point trigger (same as in my working master model) is Case Function item.Type, Case 1 → current.outObjects[1], Case 2 → [2], Case 3 → [3].&lt;/P&gt;&lt;P&gt;Why doesn't my digital twin follow the master model? I'm struggling with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 04:45:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202676#M101586</guid>
      <dc:creator>oaljarrahBEV2F</dc:creator>
      <dc:date>2026-07-17T04:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202690#M101587</link>
      <description>&lt;PRE&gt;setlabel(newitem, "Type", 1);&lt;/PRE&gt;&lt;P&gt;you hard coded this.&lt;/P&gt;&lt;P&gt;setitemtype and node are marked as deprecated. Especially itemtype has been replaced a long time ago by a standard label.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 05:10:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202690#M101587</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2026-07-17T05:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202707#M101588</link>
      <description>&lt;P&gt;Thanks for taking a look. I appreciate it, but I'm afraid I don't quite follow.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 05:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202707#M101588</guid>
      <dc:creator>oaljarrahBEV2F</dc:creator>
      <dc:date>2026-07-17T05:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202752#M101589</link>
      <description>&lt;P&gt;You are moving the items into "EntryTransfer1" which is positioned at the start of the lane 1 (which you don't need since the conveyors are connected to each other directly). The entry transfer at the start of the main conveyor is called "EntryTransfer4".&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 06:33:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202752#M101589</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-07-17T06:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202781#M101591</link>
      <description>&lt;P&gt;Tried it, but the digital twin still behaves as if it has a mind of its own. Items appear, but not the way the master drives them.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 07:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202781#M101591</guid>
      <dc:creator>oaljarrahBEV2F</dc:creator>
      <dc:date>2026-07-17T07:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202803#M101592</link>
      <description>&lt;P&gt;I haven't worked with OPC connections before but are essentially two options of how the sensor tags work.&lt;/P&gt;
&lt;P&gt;1) They check the value in the specified update interval (1s) and always execute the code depending on the current value. This would mean the model creates one item per second no matter what.&lt;/P&gt;
&lt;P&gt;2) The code is only executed when the value changes. So if two items with the same type arrive in succession, the second would not appear in the twin model.&lt;/P&gt;
&lt;P&gt;In either case, resetting the tag value to 0 after an item is created in the twin model (and possibly reducing the update interval) should help.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 07:28:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14202803#M101592</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-07-17T07:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14203117#M101597</link>
      <description>&lt;P&gt;Tried both, still experiencing the same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 13:21:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14203117#M101597</guid>
      <dc:creator>oaljarrahBEV2F</dc:creator>
      <dc:date>2026-07-17T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205169#M101604</link>
      <description>&lt;P&gt;Let's take a step back. In your original question you wrote that the created items' color matches the expected sequence. Has this changed or does "mind of its own" allude to other differences/issues?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 07:51:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205169#M101604</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-07-20T07:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205551#M101613</link>
      <description>&lt;P&gt;Thanks for your response. I created a much simpler model to isolate the issue. The main problem is that the digital twin does not create the same number of flow items as the master model, even though the item colors follow the expected sequence. I'm not sure whether the issue is with my digital twin logic or the code I'm using to create the items. Any suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 13:53:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205551#M101613</guid>
      <dc:creator>oaljarrahBEV2F</dc:creator>
      <dc:date>2026-07-20T13:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205585#M101614</link>
      <description>&lt;P&gt;I got the system to work (at least rudimentary) through a Modbus connection. The attached models are in version 26.0, but so were those in your original question, so I hope you can work with them. The important detail is that appears to be a bug (with Modbus connection at least) where FlexSim simply does not notice that a variable has been set to 0. So I used a holding register and switch it between -1 and 1.&lt;/P&gt;
&lt;P&gt;Furthermore I would suggest you try to link the emulation variables to Variable activities in Process Flow. Through Event-Triggered Sources you can then get information when a value change was actually registered.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-07-20 161515.png" style="width: 911px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1651781iFF90031FFDDEA9D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-07-20 161515.png" alt="Screenshot 2026-07-20 161515.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 14:15:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205585#M101614</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-07-20T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205676#M101615</link>
      <description>&lt;P&gt;I appreciate that. Now the digital twins flow items are created as master create them, but I'm not sure if coloring items included in this logic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 14:59:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14205676#M101615</guid>
      <dc:creator>oaljarrahBEV2F</dc:creator>
      <dc:date>2026-07-20T14:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Emulation Control tag creates flowitems in Digital Twin model, but Decision Point routing sends all items to port 1</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14206594#M101621</link>
      <description>&lt;P&gt;No the type is not yet taken from the other model. But that's not a big change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2026 06:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/emulation-control-tag-creates-flowitems-in-digital-twin-model/m-p/14206594#M101621</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-07-21T06:16:28Z</dc:date>
    </item>
  </channel>
</rss>

