<?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 Unable to read OPC UA variables from server in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/unable-to-read-opc-ua-variables-from-server/m-p/13491230#M8696</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37193-1614268692094.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505186iE197C915B7534B44/image-size/large?v=v2&amp;amp;px=999" role="button" title="37193-1614268692094.png" alt="37193-1614268692094.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37194-1614268743058.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505188iA4BCFB509FF3F1CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="37194-1614268743058.png" alt="37194-1614268743058.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37203-1614269138431.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505189i91BDE6F722F5D854/image-size/large?v=v2&amp;amp;px=999" role="button" title="37203-1614269138431.png" alt="37203-1614269138431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I am able to detect the variable under Node ID and I tried to use the code below to read the variable value but unable to do so. In another OPC UA client that I tested, it is able to read the value just fine. The server is a python script running locally attached below. Would appreciate the help.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/37180-new-python-file.py" target="_blank"&gt;New Python File.py&lt;/A&gt;&lt;/P&gt;
 &lt;PRE&gt;double value = Emulation.Variable("myvar").value;
return value;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 25 Feb 2021 16:06:17 GMT</pubDate>
    <dc:creator>cheng_wei_n</dc:creator>
    <dc:date>2021-02-25T16:06:17Z</dc:date>
    <item>
      <title>Unable to read OPC UA variables from server</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/unable-to-read-opc-ua-variables-from-server/m-p/13491230#M8696</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37193-1614268692094.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505186iE197C915B7534B44/image-size/large?v=v2&amp;amp;px=999" role="button" title="37193-1614268692094.png" alt="37193-1614268692094.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37194-1614268743058.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505188iA4BCFB509FF3F1CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="37194-1614268743058.png" alt="37194-1614268743058.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37203-1614269138431.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505189i91BDE6F722F5D854/image-size/large?v=v2&amp;amp;px=999" role="button" title="37203-1614269138431.png" alt="37203-1614269138431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I am able to detect the variable under Node ID and I tried to use the code below to read the variable value but unable to do so. In another OPC UA client that I tested, it is able to read the value just fine. The server is a python script running locally attached below. Would appreciate the help.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/37180-new-python-file.py" target="_blank"&gt;New Python File.py&lt;/A&gt;&lt;/P&gt;
 &lt;PRE&gt;double value = Emulation.Variable("myvar").value;
return value;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:06:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/unable-to-read-opc-ua-variables-from-server/m-p/13491230#M8696</guid>
      <dc:creator>cheng_wei_n</dc:creator>
      <dc:date>2021-02-25T16:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read OPC UA variables from server</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/unable-to-read-opc-ua-variables-from-server/m-p/13491231#M8697</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It works for me on a local host :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37204-1614275357862.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505183i39E530CC956A44F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="37204-1614275357862.png" alt="37204-1614275357862.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37205-1614275389879.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505184i0903B7941127E90C/image-size/large?v=v2&amp;amp;px=999" role="button" title="37205-1614275389879.png" alt="37205-1614275389879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you try that?  If that works I wonder if it could be a security issue. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Feb 2021 17:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/unable-to-read-opc-ua-variables-from-server/m-p/13491231#M8697</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-02-25T17:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read OPC UA variables from server</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/unable-to-read-opc-ua-variables-from-server/m-p/13491232#M8698</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Ok the issue is resolved. I think I did not reset and run my model, that could be the reason why the variable value did not update. Thanks for your time!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Feb 2021 01:51:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/unable-to-read-opc-ua-variables-from-server/m-p/13491232#M8698</guid>
      <dc:creator>cheng_wei_n</dc:creator>
      <dc:date>2021-02-26T01:51:51Z</dc:date>
    </item>
  </channel>
</rss>

