<?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: Running Webkit to call a FlexScript function (fireFlexSimEvent()) in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549332#M54323</link>
    <description>&lt;P&gt;
	&lt;A rel="user" href="https://answers.flexsim.com/users/4066/roger.w.html" nodeid="4066"&gt;@Roger W&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;
	&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/42601/control-flex-sim-through-scripts-remotely.html" target="_blank"&gt;This previous question&lt;/A&gt; you asked has some good answers already. In particular I would read up on the FlexSim webserver. You can find documentation for it within FlexSim 16.1.2's user manual under Miscellaneous Concepts. This is probably the easiest of the options, since it allows FlexSim itself to the the web server.&lt;/P&gt;&lt;P&gt;
	Other options mentioned on that previous question probably require additional servers to be configured:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A rel="noopener noreferrer" href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" target="_blank"&gt;websockets&lt;/A&gt; - "an advanced technology that makes it possible to open an interactive communication session between the user's browser and a server". Could be used for communication between a webserver and a FlexSim Webkit gui.&lt;/LI&gt;&lt;LI&gt;FlexSim's &lt;A rel="noopener noreferrer" href="https://www.flexsim.com/community/forum/showthread.php?t=3186" target="_blank"&gt;sockets&lt;/A&gt; implementation - could be used for communication between a webserver and FlexSim model.&lt;/LI&gt;&lt;LI&gt;Implement your own communication layer &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/31325/where-can-i-find-the-latest-flexsim-module-dll-sdk.html" target="_blank"&gt;via a DLL&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
	If you have any questions regarding any of these specific approaches, please start a new question, as this question regarding fireFlexsimEvent() has been answered.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 22:56:30 GMT</pubDate>
    <dc:creator>Ben_WilsonADSK</dc:creator>
    <dc:date>2017-08-31T22:56:30Z</dc:date>
    <item>
      <title>Running Webkit to call a FlexScript function (fireFlexSimEvent())</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549326#M54317</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I am trying to get a Javascript to run a flexscript through this fireflexsimevent() command I have been seeing around the forums. I have the flexscript to open and close the port of a processor. However, I am clueless with how to work with JS to execute this flexscript command. the examples I downloaded from forums (&lt;A rel="nofollow noopener noreferrer" href="https://answers.flexsim.com/questions/21092/web-communication-within-flexsim.html" target="_blank"&gt;https://answers.flexsim.com/questions/21092/web-communication-within-flexsim.html&lt;/A&gt;) are probably different version to mines as I cannot see what they are doing. (I use version 16.1.2). &lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Could anyone point my in the right direction on how this is done?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:31:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549326#M54317</guid>
      <dc:creator>roger_w</dc:creator>
      <dc:date>2017-08-30T08:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running Webkit to call a FlexScript function (fireFlexSimEvent())</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549327#M54318</link>
      <description>&lt;P&gt;Do NOT use close or open port on a Fixed Resource Object. Instead try to use open or close Input or Output of a Fixed Resource Object. There exists only some very small bounded situations and objects on which you can use the commands which close and open ports directly. They are commands which works directly on the internal processes of the Flexsim engine and have side effects you have to consider all. If you depend on a edge to or from an object to be closed then insert a queue between the two involved objects and close or open the input or output of this inserted queue. Sometimes you have to insert more objects into a model than there are in reality to build the process.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 11:04:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549327#M54318</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2017-08-30T11:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running Webkit to call a FlexScript function (fireFlexSimEvent())</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549328#M54319</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/4066/roger.w.html" nodeid="4066"&gt;@Roger W&lt;/A&gt;, you can look in the manual to see the same information on &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/articles/14602/openip-2.html" target="_blank"&gt;openip(..)&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 11:12:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549328#M54319</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2017-08-30T11:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running Webkit to call a FlexScript function (fireFlexSimEvent())</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549329#M54320</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/4066/roger.w.html" nodeid="4066"&gt;@Roger W&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please carefully review this comment and attached sample model:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/comments/37482/view.html" target="_blank"&gt;https://answers.flexsim.com/comments/37482/view.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There you'll find a 16.0.0 sample model that demonstrates both:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;callwebscriptmethod() - calls a Javascript function living in your Webkit GUI from within FlexSim. You can find this example in the Processor's OnEntry trigger.&lt;/LI&gt;&lt;LI&gt;fireFlexsimEvent() - calls FlexScript inside the model from within the Webkit window's HTML/Javascript. Find this example in the htmlWidget's html code.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Also, please take note of &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt;'s comment above regarding closing of ports. My answer is an answer to your top question (how to use fireFlexsimEvent()), but you want to be sure that the functionality you're calling within FlexSim is still best practices for FlexSim modeling.&lt;/P&gt;&lt;P&gt;Comment back with any Webkit related questions.&lt;/P&gt;&lt;P&gt;Or start a &lt;EM&gt;new &lt;/EM&gt;question for other topics, like ports, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:14:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549329#M54320</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2017-08-30T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running Webkit to call a FlexScript function (fireFlexSimEvent())</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549330#M54321</link>
      <description>&lt;P&gt;Thanks for the tips and heads up, I will look into openip&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 01:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549330#M54321</guid>
      <dc:creator>roger_w</dc:creator>
      <dc:date>2017-08-31T01:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running Webkit to call a FlexScript function (fireFlexSimEvent())</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549331#M54322</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://answers.flexsim.com/users/9/benjaminwilson.html" nodeid="9"&gt;@Ben Wilson&lt;/A&gt;, This comment is very helpful. I now understand that the GUI in flexsim can control the model, is it possible to move the GUI onto a website so users can click the "button" and control the model from the site&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 01:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549331#M54322</guid>
      <dc:creator>roger_w</dc:creator>
      <dc:date>2017-08-31T01:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Running Webkit to call a FlexScript function (fireFlexSimEvent())</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549332#M54323</link>
      <description>&lt;P&gt;
	&lt;A rel="user" href="https://answers.flexsim.com/users/4066/roger.w.html" nodeid="4066"&gt;@Roger W&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;
	&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/42601/control-flex-sim-through-scripts-remotely.html" target="_blank"&gt;This previous question&lt;/A&gt; you asked has some good answers already. In particular I would read up on the FlexSim webserver. You can find documentation for it within FlexSim 16.1.2's user manual under Miscellaneous Concepts. This is probably the easiest of the options, since it allows FlexSim itself to the the web server.&lt;/P&gt;&lt;P&gt;
	Other options mentioned on that previous question probably require additional servers to be configured:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A rel="noopener noreferrer" href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" target="_blank"&gt;websockets&lt;/A&gt; - "an advanced technology that makes it possible to open an interactive communication session between the user's browser and a server". Could be used for communication between a webserver and a FlexSim Webkit gui.&lt;/LI&gt;&lt;LI&gt;FlexSim's &lt;A rel="noopener noreferrer" href="https://www.flexsim.com/community/forum/showthread.php?t=3186" target="_blank"&gt;sockets&lt;/A&gt; implementation - could be used for communication between a webserver and FlexSim model.&lt;/LI&gt;&lt;LI&gt;Implement your own communication layer &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/31325/where-can-i-find-the-latest-flexsim-module-dll-sdk.html" target="_blank"&gt;via a DLL&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
	If you have any questions regarding any of these specific approaches, please start a new question, as this question regarding fireFlexsimEvent() has been answered.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 22:56:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/running-webkit-to-call-a-flexscript-function-fireflexsimevent/m-p/13549332#M54323</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2017-08-31T22:56:30Z</dc:date>
    </item>
  </channel>
</rss>

