TPT User's Guide - PikeTec
TPT User's Guide - PikeTec
TPT User's Guide - PikeTec
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>TPT</strong> <strong>User's</strong> <strong>Guide</strong> Page 49<br />
9.4 The executable platform<br />
A very basic but flexible platform configuration is the Executable platform configuration. This<br />
platform is any executable program that is specified.<br />
In order to execute test cases the system under test (SUT) need to be stimulated by the<br />
execution environment of <strong>TPT</strong>. The API of the <strong>TPT</strong> execution environment and how the SUT will<br />
be connected to the <strong>TPT</strong> execution environment (<strong>TPT</strong>-VM) will be described in the following<br />
section.<br />
In Figure 34 the flow diagram of the executable environment is shown. The execution of the<br />
test platform starts with an initialisation phase where the input file and the output file are<br />
opened and the data for the stimulation are assigned to the <strong>TPT</strong>-outputs and the outputs of the<br />
SUT are assigned to the <strong>TPT</strong>-inputs. The major loop consists of the actual periodical call of the<br />
SUT and the <strong>TPT</strong> virtual machine for each time step. The test-procedure finishes with a closing<br />
of the data files and a memory release. The return value of the executable must be set to zero<br />
when the execution was successful.<br />
Please refer to the lights control example and the “tpt_vm_api.h” where the full <strong>TPT</strong>-VM-<br />
API description can be found. Please make sure having “tptvmapi.dll” in the same folder<br />
as the executable.