﻿<?xml version="1.0" encoding="utf-8"?>
<!--Vector Test Table Editor-->
<ttroot version="15" xmlns="http://www.vector-informatik.de/ITE/TestTable/1.0">
  <tt>
    <tf>
      <title />
      <preparation>
        <title />
        <cycletime_rel>
          <title />
          <checkid />
          <object>
            <node>DBNode_BEGIN_OF_OBJECT|1|NodeOrFrameData_BEGIN_OF_OBJECT|1|1|easy|1|easy|Engine|END_OF_OBJECT_NodeOrFrameData|NodeData_BEGIN_OF_OBJECT|1|END_OF_OBJECT_NodeData|16|END_OF_OBJECT_|</node>
          </object>
          <min>
            <const>0.8</const>
          </min>
          <max>
            <const>1.2</const>
          </max>
        </cycletime_rel>
        <cycletime_rel>
          <title />
          <checkid />
          <object>
            <node>DBNode_BEGIN_OF_OBJECT|1|NodeOrFrameData_BEGIN_OF_OBJECT|1|1|easy|1|easy|Light|END_OF_OBJECT_NodeOrFrameData|NodeData_BEGIN_OF_OBJECT|1|END_OF_OBJECT_NodeData|16|END_OF_OBJECT_|</node>
          </object>
          <min>
            <const>0.8</const>
          </min>
          <max>
            <const>1.2</const>
          </max>
        </cycletime_rel>
      </preparation>
      <tc>
        <title>LightTest</title>
        <set>
          <title />
          <in>
            <assignment>
              <dbobject>SysVar_BEGIN_OF_OBJECT|1|HazardLightsSwitch|Lights|-1|0|END_OF_OBJECT_SysVar|</dbobject>
              <source>
                <const>1</const>
              </source>
            </assignment>
          </in>
        </set>
        <wait>
          <title />
          <time>
            <value>
              <const>100</const>
            </value>
            <unit>ms</unit>
          </time>
        </wait>
        <caplinline>
          <title />
          <code>if (testWaitForSignalMatch (FlashLight, 1, 200) == 1)
    testStepPass("FlashLight", "FlashLight is turned on");
  else
    testStepFail("FlashLight", "The FlashLight could not be turned on");</code>
        </caplinline>
        <set>
          <title />
          <in>
            <assignment>
              <dbobject>SysVar_BEGIN_OF_OBJECT|1|HazardLightsSwitch|Lights|-1|0|END_OF_OBJECT_SysVar|</dbobject>
              <source>
                <const>0</const>
              </source>
            </assignment>
          </in>
        </set>
        <wait>
          <title />
          <time>
            <value>
              <const>50</const>
            </value>
            <unit>ms</unit>
          </time>
        </wait>
      </tc>
      <tc>
        <title>EngineTest</title>
        <stimulate_ramp>
          <title />
          <dbobject>SysVar_BEGIN_OF_OBJECT|1|EngineSpeedEntry|Engine|-1|0|END_OF_OBJECT_SysVar|</dbobject>
          <time_up>
            <value>
              <const>3000</const>
            </value>
            <unit>ms</unit>
          </time_up>
          <time_high>
            <value>
              <const>150</const>
            </value>
            <unit>ms</unit>
          </time_high>
          <time_down>
            <value>
              <const>3000</const>
            </value>
            <unit>ms</unit>
          </time_down>
          <time_low>
            <value>
              <const>20</const>
            </value>
            <unit>ms</unit>
          </time_low>
          <duration>
            <value>
              <const>4000</const>
            </value>
            <unit>ms</unit>
          </duration>
          <cycle_time>
            <value>
              <const>100</const>
            </value>
            <unit>ms</unit>
          </cycle_time>
          <wait_until_finished>
            <bool>false</bool>
          </wait_until_finished>
        </stimulate_ramp>
        <set>
          <title />
          <in>
            <assignment>
              <dbobject>SysVar_BEGIN_OF_OBJECT|1|EngineStateSwitch|Engine|-1|0|END_OF_OBJECT_SysVar|</dbobject>
              <source>
                <const>1</const>
              </source>
            </assignment>
          </in>
        </set>
        <awaitvaluematch>
          <title />
          <timeout>
            <value>
              <const>4000</const>
            </value>
            <unit>ms</unit>
          </timeout>
          <joincondition>
            <enum>all</enum>
          </joincondition>
          <compare>
            <dbobject>DBSignal_BEGIN_OF_OBJECT|1|NodeOrFrameData_BEGIN_OF_OBJECT|1|1|easy|1|easy|Engine|END_OF_OBJECT_NodeOrFrameData|FrameData_BEGIN_OF_OBJECT|1|255|255|0|0|EngineState|291|False|END_OF_OBJECT_FrameData|EngineSpeed|1|END_OF_OBJECT_|</dbobject>
            <range>
              <fromto>
                <from>
                  <const>3450</const>
                </from>
                <to>
                  <const>3550</const>
                </to>
              </fromto>
            </range>
          </compare>
        </awaitvaluematch>
        <set>
          <title />
          <in>
            <assignment>
              <dbobject>SysVar_BEGIN_OF_OBJECT|1|EngineStateSwitch|Engine|-1|0|END_OF_OBJECT_SysVar|</dbobject>
              <source>
                <const>1</const>
              </source>
            </assignment>
            <assignment>
              <dbobject>SysVar_BEGIN_OF_OBJECT|1|EngineSpeedEntry|Engine|-1|0|END_OF_OBJECT_SysVar|</dbobject>
              <source>
                <const>0</const>
              </source>
            </assignment>
            <assignment>
              <dbobject>DBSignal_BEGIN_OF_OBJECT|1|NodeOrFrameData_BEGIN_OF_OBJECT|1|1|easy|1|easy|Engine|END_OF_OBJECT_NodeOrFrameData|FrameData_BEGIN_OF_OBJECT|1|255|255|0|0|EngineState|291|False|END_OF_OBJECT_FrameData|EngineSpeed|1|END_OF_OBJECT_|</dbobject>
              <source>
                <const>0</const>
              </source>
            </assignment>
          </in>
        </set>
      </tc>
    </tf>
    <tc>
      <title>DisplayTest</title>
      <set>
        <title />
        <in>
          <assignment>
            <dbobject>DBSignal_BEGIN_OF_OBJECT|1|NodeOrFrameData_BEGIN_OF_OBJECT|1|1|easy|1|easy|Light|END_OF_OBJECT_NodeOrFrameData|FrameData_BEGIN_OF_OBJECT|1|255|255|0|0|LightState|801|False|END_OF_OBJECT_FrameData|HeadLight|1|END_OF_OBJECT_|</dbobject>
            <source>
              <const>1</const>
            </source>
          </assignment>
        </in>
      </set>
      <wait>
        <title />
        <time>
          <value>
            <const>50</const>
          </value>
          <unit>ms</unit>
        </time>
      </wait>
      <awaitvaluematch>
        <title />
        <timeout>
          <value>
            <const>2000</const>
          </value>
          <unit>ms</unit>
        </timeout>
        <compare>
          <dbobject>SysVar_BEGIN_OF_OBJECT|1|LightDisplay|Lights|-1|0|END_OF_OBJECT_SysVar|</dbobject>
          <eq>
            <const>4</const>
          </eq>
        </compare>
      </awaitvaluematch>
      <set>
        <title />
        <in>
          <assignment>
            <dbobject>DBSignal_BEGIN_OF_OBJECT|1|NodeOrFrameData_BEGIN_OF_OBJECT|1|1|easy|1|easy|Light|END_OF_OBJECT_NodeOrFrameData|FrameData_BEGIN_OF_OBJECT|1|255|255|0|0|LightState|801|False|END_OF_OBJECT_FrameData|HeadLight|1|END_OF_OBJECT_|</dbobject>
            <source>
              <const>0</const>
            </source>
          </assignment>
        </in>
      </set>
      <wait>
        <title />
        <time>
          <value>
            <const>50</const>
          </value>
          <unit>ms</unit>
        </time>
      </wait>
    </tc>
  </tt>
  <ttlib>
    <ts_definitions />
    <tc_definitions />
    <function_definitions />
  </ttlib>
</ttroot>