Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

File sample: bridge​.xml

  • Last UpdatedDec 04, 2023
  • 1 minute read

Bridge.xml

The following Bridge Configuration file (bridge.xml) includes:

  • 4 channel definitions

  • Examples of channel data entry definitions

  • Examples of rules

Code example

This is an example of bridge.xml.

<?xml version="1.0"?>

<bridge licenseType="XR_RUNTIME" restPort="10667">

<channels>

<channel name="dynsim" class="ChannelSIM4ME.ChannelSIM4ME" hostName="dynsim5" hostAddress="dynsim5" hostPort="10152" slave="false" connectionString="-sim4mehost %hostName% -sim4mename SimExecutive -ORBInitRef NameService=iioploc://%hostAddress%:%hostPort%/NameService -ORBSvcConfDirective static%SPC%Server_Strategy_Factory%SPC%'-ORBConcurrency%SPC%thread-per-connection' -nsversion DSS50 -logging_level INFO -logging_file simbridge.log" remoteConnectionString="-sim4mehost %hostName% -sim4mename SimExecutive -ORBInitRef NameService=iioploc://%hostAddress%:%hostPort%/NameService -ORBSvcConfDirective static%SPC%Server_Strategy_Factory%SPC%'-ORBConcurrency%SPC%thread-per-connection' -nsversion DSS50 -logging_level INFO -logging_file simbridge.log -simulation %simulation% -simfullpath %simfullpath%" />

<channel name="mwpl" class="mwpl.bridge.core.ChannelMWPL" connectionName="bridge" connectionType="client" connectionHost="localhost" connectionPort="10666" autoconnection="true"/>

<channel name="test" class="mwpl.bridge.core.ChannelTest"/>

<channel name="test2" class="mwpl.bridge.core.ChannelTest"/>

</channels>

<simulations>

<simulation name="sim1">

<dynsim simulation="IGCC4" simfullpath="C:\SIMSCI\DSS45\User\IGCC4.s4m" remoteStart="false" shutdownOnDisconnect="false" closeSimulationOnDisconnect="false" freezeOnDisconnect="true" useDataRouter="true" useScenarios="false" sendOnlyWhenRunning="true" firstDisconnect="false" useClientMessages="false">

<analog name=" RF232.OP" direction="in" mode="router"/>

<analog name=" RF232.POS" direction="out" mode="router"/>

<malfunction name="TV101Malf" id="1"/>

<malfunction name="TT101Malf" id="2"/>

<scenario name="Scen-LoadIC" id="5"/>

<scenario name="Scen-Malfun" id="6"/>

</dynsim>

<mwpl>

<sfloat name="0800-RF232.value"/>

<sfloat name="0800-RF232.op"/>

</mwpl>

<test>

<var name="var1"/>

<var name="var2"/>

<var name="var7" value="0"/>

</test>

<test2>

<var name="var1"/>

<var name="var2"/>

</test2>

<rules>

<trigger from="dynsim: RF232.POS" to="mwpl:0800-RF232.value"/>

<trigger from="mwpl:0800-RF232.op" to="dynsim: RF232.OP"/>

<trigger from="test:var1,test:var2" to="test2:var3" value="0" condition="@test:var1@==@test:var2@"/>

<refresh interval="10" to="test:var7" value="#@test:var7@+1#"/>

</rules>

</simulation>

</simulations>

</bridge>

In This Topic
TitleResults for “How to create a CRG?”Also Available in