<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?>
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd"
    name="L410 test script">
  <description>For testing the L410 electrical system</description>
  <use aircraft="L410" initialize="reset00"/>
  <run start="0.0" end="10" dt="0.0010">
    <event name="Turn on battery 1">
      <condition>simulation/sim-time-sec  ge  5.0</condition>
      <set name="/systems/l410/battery1-ok" value="1"/>
      <notify/>
    </event>
    <event name="Turn on battery 2">
      <condition>simulation/sim-time-sec  ge  6.0</condition>
      <set name="/systems/l410/battery2-ok" value="1"/>
      <notify/>
    </event>
    <event name="Watch 28 volt bus voltage">
      <condition>simulation/sim-time-sec  ge  7.0</condition>
      <set name="/systems/electrical/outputs/bus28v" action="FG_EXP" value="28" tc="0.50"/>
      <notify/>
    </event>
    <event name="Watch 36 volt bus voltage">
      <condition>simulation/sim-time-sec  ge  8.0</condition>
      <set name="/systems/electrical/outputs/bus36v" action="FG_EXP" value="36" tc="0.50"/>
      <notify/>
    </event>
    <event name="Watch 115 volt bus voltage">
      <condition>simulation/sim-time-sec  ge  9.0</condition>
      <set name="/systems/electrical/outputs/bus115v" action="FG_EXP" value="115" tc="0.50"/>
      <notify/>
    </event>
  </run>
</runscript>
