svghmi/pous.xml
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 05 Oct 2022 16:10:17 +0200
branchwxPython4
changeset 3617 c3aae4c95bc1
parent 2814 2cabc4773885
child 3837 efe0b5b21842
permissions -rw-r--r--
Runtime: work around 1s delay added when using twisted reactor's callLater.

Since wxPython4, using wxReactor from non-main thread was producing
exceptions in wxWidget's C++ code. Then reactor.run() was called from
main thread, and runtime's worker was delegating calls to reactor
with callLater(0, callable).

While this worked perfectly with wxReactor, it did introduce an unexplained
1 second delay to each worker call when using nomal linux reactors
(i.e. without wxPython). As a workaround reactor runs in a thread when using
twisted without wxPython
<?xml version='1.0' encoding='utf-8'?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201">
  <fileHeader companyName="Beremiz" productName="Beremiz" productVersion="0.0" creationDateTime="2008-12-14T16:53:26"/>
  <contentHeader name="Beremiz non-standard POUs library" modificationDateTime="2019-08-06T14:08:26">
    <coordinateInfo>
      <fbd>
        <scaling x="0" y="0"/>
      </fbd>
      <ld>
        <scaling x="0" y="0"/>
      </ld>
      <sfc>
        <scaling x="0" y="0"/>
      </sfc>
    </coordinateInfo>
  </contentHeader>
  <types>
    <dataTypes>
      <dataType name="HMI_INT">
        <baseType>
          <INT/>
        </baseType>
      </dataType>
      <dataType name="HMI_REAL">
        <baseType>
          <REAL/>
        </baseType>
      </dataType>
      <dataType name="HMI_STRING">
        <baseType>
          <string/>
        </baseType>
      </dataType>
      <dataType name="HMI_BOOL">
        <baseType>
          <BOOL/>
        </baseType>
      </dataType>
      <dataType name="HMI_NODE">
        <baseType>
          <BOOL/>
        </baseType>
      </dataType>
    </dataTypes>
    <pous/>
  </types>
  <instances>
    <configurations/>
  </instances>
</project>