<?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: sampling interval of opc ua control variable not working in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/sampling-interval-of-opc-ua-control-variable-not-working/m-p/13577679#M76563</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/42872/sunlight.html" nodeid="42872"&gt;@sunlight&lt;/A&gt; , the "Sampling Interval Time" is how often FlexSim check for values BUT values changes depend from the "Publishing Time" ( 'Update Cycle of underlying system in the picture) of the OPC UA Server.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1695108384465.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1519519i343A11AE501D9033/image-size/large?v=v2&amp;amp;px=999" role="button" title="1695108384465.png" alt="1695108384465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;May be that you OPC UA Server has a publishing time of 1000ms so it publishes new values with this interval. &lt;BR /&gt;If you check every 10ms you will not see new values for 100 sampling.&lt;BR /&gt;&lt;BR /&gt;The "Emulation Module", available for FlexSim 2023, introduced for OPC UA a "Poll For Changes" option to exceed this problem:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1695108773604.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1519520iF1F67E98BBC2A364/image-size/large?v=v2&amp;amp;px=999" role="button" title="1695108773604.png" alt="1695108773604.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 19 Sep 2023 07:33:24 GMT</pubDate>
    <dc:creator>lcavallero</dc:creator>
    <dc:date>2023-09-19T07:33:24Z</dc:date>
    <item>
      <title>sampling interval of opc ua control variable not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sampling-interval-of-opc-ua-control-variable-not-working/m-p/13577678#M76562</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;I created an OPC UA Control Variable and set the sampling interval to 10 ms(&lt;SPAN id="isPasted" style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;OPC UA Server updates the variable value every 10 ms&lt;/SPAN&gt;). &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;However, when I print the time out in the "Action," I noticed that the variable updates approximately every 500 ms, even when I set the sampling interval to 1000 ms. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;&lt;SPAN id="isPasted" style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;I'm not sure where I went wrong. Please help me resolve this issue. Thank you very much.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="emulation.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1519522iD8CCE2C077AC7B37/image-size/large?v=v2&amp;amp;px=999" role="button" title="emulation.png" alt="emulation.png" /&gt;&lt;/span&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Sep 2023 09:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sampling-interval-of-opc-ua-control-variable-not-working/m-p/13577678#M76562</guid>
      <dc:creator>sunlight</dc:creator>
      <dc:date>2023-09-18T09:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: sampling interval of opc ua control variable not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sampling-interval-of-opc-ua-control-variable-not-working/m-p/13577679#M76563</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/42872/sunlight.html" nodeid="42872"&gt;@sunlight&lt;/A&gt; , the "Sampling Interval Time" is how often FlexSim check for values BUT values changes depend from the "Publishing Time" ( 'Update Cycle of underlying system in the picture) of the OPC UA Server.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1695108384465.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1519519i343A11AE501D9033/image-size/large?v=v2&amp;amp;px=999" role="button" title="1695108384465.png" alt="1695108384465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;May be that you OPC UA Server has a publishing time of 1000ms so it publishes new values with this interval. &lt;BR /&gt;If you check every 10ms you will not see new values for 100 sampling.&lt;BR /&gt;&lt;BR /&gt;The "Emulation Module", available for FlexSim 2023, introduced for OPC UA a "Poll For Changes" option to exceed this problem:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1695108773604.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1519520iF1F67E98BBC2A364/image-size/large?v=v2&amp;amp;px=999" role="button" title="1695108773604.png" alt="1695108773604.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Sep 2023 07:33:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sampling-interval-of-opc-ua-control-variable-not-working/m-p/13577679#M76563</guid>
      <dc:creator>lcavallero</dc:creator>
      <dc:date>2023-09-19T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: sampling interval of opc ua control variable not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sampling-interval-of-opc-ua-control-variable-not-working/m-p/13577680#M76564</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/686/luciano.c.html" nodeid="686"&gt;Luciano Cavallero &lt;/A&gt;, &lt;SPAN style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;thank you very much for your response. The &lt;SPAN style="color: rgb(51, 51, 51); font-family: "&gt;Publishing Time&lt;/SPAN&gt; of the OPC UA server is 10 ms, and I can see in UaExpert that the values are updated every 10 ms. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;The Emulation module for Flexsim 2023 requires a separate license, so for now, I can only use the Emulation module for Flexsim 2022. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;Attached are my FlexSim model and the Python program that serves as an OPC UA server.&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/73863-opc-ua-serverpy-sampling-intervalfsm.zip" target="_blank"&gt;OPC UA Server.py &amp;amp; sampling interval.fsm.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Sep 2023 09:20:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sampling-interval-of-opc-ua-control-variable-not-working/m-p/13577680#M76564</guid>
      <dc:creator>sunlight</dc:creator>
      <dc:date>2023-09-19T09:20:41Z</dc:date>
    </item>
  </channel>
</rss>

